From 0e6e405fec42f48da373bc6f19f5221c7a4872d6 Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Fri, 26 Jan 2018 10:46:30 -0800 Subject: [PATCH] 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 --- tools/db_bench_tool.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index e020712db..083f130d2 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -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; -- GitLab