diff --git a/tools/db_crashtest.py b/tools/db_crashtest.py index 0f5803713..187f45995 100644 --- a/tools/db_crashtest.py +++ b/tools/db_crashtest.py @@ -79,7 +79,8 @@ def main(argv): ' --target_file_size_multiplier=2 ' + \ ' --max_write_buffer_number=3 ' + \ ' --max_background_compactions=20 ' + \ - ' --max_bytes_for_level_base=10485760' + ' --max_bytes_for_level_base=10485760 ' + \ + ' --filter_deletes=' + str(random.randint(0, 1)) killtime = time.time() + interval child = subprocess.Popen(['./db_stress \ --test_batches_snapshots=1 \ diff --git a/tools/db_crashtest2.py b/tools/db_crashtest2.py index de599f1b5..2398efd91 100644 --- a/tools/db_crashtest2.py +++ b/tools/db_crashtest2.py @@ -84,7 +84,8 @@ def main(argv): ' --target_file_size_multiplier=2 ' + \ ' --max_write_buffer_number=3 ' + \ ' --max_background_compactions=20 ' + \ - ' --max_bytes_for_level_base=10485760' + ' --max_bytes_for_level_base=10485760 ' + \ + ' --filter_deletes=' + str(random.randint(0, 1)) print ("Running db_stress with additional options=\n" + additional_opts + "\n")