mirror of https://github.com/facebook/rocksdb.git
Enable DeleteRange in stress/crash tests (#4483)
Summary: Set `delrangepercent=1` when `test_batches_snapshots=false`. Pull Request resolved: https://github.com/facebook/rocksdb/pull/4483 Differential Revision: D10324361 Pulled By: ajkr fbshipit-source-id: 0cde1f1504f9493408a0c6493b976d7e5f5b2d23
This commit is contained in:
parent
81b6b09f6b
commit
68d949b3e3
|
@ -31,7 +31,8 @@ default_params = {
|
|||
"clear_column_family_one_in": 0,
|
||||
"compact_files_one_in": 1000000,
|
||||
"compact_range_one_in": 1000000,
|
||||
"delpercent": 5,
|
||||
"delpercent": 4,
|
||||
"delrangepercent": 1,
|
||||
"destroy_db_initially": 0,
|
||||
"enable_pipelined_write": lambda: random.randint(0, 1),
|
||||
"expected_values_path": expected_values_file.name,
|
||||
|
@ -147,6 +148,9 @@ def finalize_and_sanitize(src_params):
|
|||
dest_params["db"]):
|
||||
dest_params["use_direct_io_for_flush_and_compaction"] = 0
|
||||
dest_params["use_direct_reads"] = 0
|
||||
if dest_params.get("test_batches_snapshots") == 1:
|
||||
dest_params["delpercent"] += dest_params["delrangepercent"]
|
||||
dest_params["delrangepercent"] = 0
|
||||
return dest_params
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue