diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index fa23de2119f174e6fa454ddcec2bd0cffbff2998..52c7c2b53ff669006d8a2f3d7975e4b0a54ff46a 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -759,6 +759,9 @@ DEFINE_bool(use_fsync, false, "If true, issue fsync instead of fdatasync"); DEFINE_bool(disable_wal, false, "If true, do not write WAL for write."); +DEFINE_bool(manual_wal_flush, false, + "If true, buffer WAL until buffer is full or a manual FlushWAL()."); + DEFINE_string(wal_dir, "", "If not empty, use the given dir for WAL"); DEFINE_string(truth_db, "/dev/shm/truth_db/dbbench", @@ -3975,6 +3978,7 @@ class Benchmark { options.use_direct_reads = FLAGS_use_direct_reads; options.use_direct_io_for_flush_and_compaction = FLAGS_use_direct_io_for_flush_and_compaction; + options.manual_wal_flush = FLAGS_manual_wal_flush; #ifndef ROCKSDB_LITE options.ttl = FLAGS_fifo_compaction_ttl; options.compaction_options_fifo = CompactionOptionsFIFO(