提交 cb1142e0 编写于 作者: M Maysam Yabandeh 提交者: Facebook Github Bot

Set index_block_restart_interval of kHashSearch to 1 in stress test (#6324)

Summary:
kHashSearch is incompatible with larger than 1 values for index_block_restart_interval. Setting it to 1 in stress tests would avoid confusion about the test parameters.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/6324

Differential Revision: D19525669

Pulled By: maysamyabandeh

fbshipit-source-id: fbf3a797e0ebcebb4d32eba3728cf3583906fc8a
上级 e6e8b9e8
......@@ -238,6 +238,9 @@ def finalize_and_sanitize(src_params):
if dest_params["index_type"] == 1 and \
dest_params.get("prefix_size", 7) == -1:
dest_params["index_type"] = 0
# kHashSearch is incompatible with index_block_restart_interval > 1
if dest_params["index_type"] == 1:
dest_params["index_block_restart_interval"] = 1;
if dest_params.get("atomic_flush", 0) == 1:
# disable pipelined write when atomic flush is used.
dest_params["enable_pipelined_write"] = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册