From dea894ef8de6f5dabd616c14a05af2d261239ae5 Mon Sep 17 00:00:00 2001 From: Lei Jin Date: Tue, 25 Feb 2014 10:43:46 -0800 Subject: [PATCH] expose wal_dir in db_bench Summary: as title Test Plan: ran db_bench Reviewers: dhruba, haobo Reviewed By: haobo CC: leveldb Differential Revision: https://reviews.facebook.net/D16269 --- db/db_bench.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db/db_bench.cc b/db/db_bench.cc index e40732f28..291a0ce8c 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -265,6 +265,8 @@ 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_string(wal_dir, "", "If not empty, use the given dir for WAL"); + DEFINE_bool(use_snapshot, false, "If true, create a snapshot per query when" " randomread benchmark is used"); @@ -1478,6 +1480,7 @@ class Benchmark { options.env = FLAGS_env; options.disableDataSync = FLAGS_disable_data_sync; options.use_fsync = FLAGS_use_fsync; + options.wal_dir = FLAGS_wal_dir; options.num_levels = FLAGS_num_levels; options.target_file_size_base = FLAGS_target_file_size_base; options.target_file_size_multiplier = FLAGS_target_file_size_multiplier; -- GitLab