db_bench support for memtable in-place update
Summary: Closes https://github.com/facebook/rocksdb/pull/3416 Differential Revision: D6820606 Pulled By: ajkr fbshipit-source-id: 5035ffb33ade8d50520cafeb685ee8c8fcf1cca8
This commit is contained in:
parent
d938226af4
commit
0e6e405fec
@ -845,6 +845,13 @@ DEFINE_bool(enable_pipelined_write, true,
|
||||
DEFINE_bool(allow_concurrent_memtable_write, true,
|
||||
"Allow multi-writers to update mem tables in parallel.");
|
||||
|
||||
DEFINE_bool(inplace_update_support, rocksdb::Options().inplace_update_support,
|
||||
"Support in-place memtable update for smaller or same-size values");
|
||||
|
||||
DEFINE_uint64(inplace_update_num_locks,
|
||||
rocksdb::Options().inplace_update_num_locks,
|
||||
"Number of RW locks to protect in-place memtable updates");
|
||||
|
||||
DEFINE_bool(enable_write_thread_adaptive_yield, true,
|
||||
"Use a yielding spin loop for brief writer thread waits.");
|
||||
|
||||
@ -3198,6 +3205,8 @@ void VerifyDBFromDB(std::string& truth_db_name) {
|
||||
options.delayed_write_rate = FLAGS_delayed_write_rate;
|
||||
options.allow_concurrent_memtable_write =
|
||||
FLAGS_allow_concurrent_memtable_write;
|
||||
options.inplace_update_support = FLAGS_inplace_update_support;
|
||||
options.inplace_update_num_locks = FLAGS_inplace_update_num_locks;
|
||||
options.enable_write_thread_adaptive_yield =
|
||||
FLAGS_enable_write_thread_adaptive_yield;
|
||||
options.enable_pipelined_write = FLAGS_enable_pipelined_write;
|
||||
|
Loading…
Reference in New Issue
Block a user