Skip to content

Commit dea894e

Browse files
author
Lei Jin
committed
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
1 parent a8c1f29 commit dea894e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

db/db_bench.cc

+3
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ DEFINE_bool(use_fsync, false, "If true, issue fsync instead of fdatasync");
265265

266266
DEFINE_bool(disable_wal, false, "If true, do not write WAL for write.");
267267

268+
DEFINE_string(wal_dir, "", "If not empty, use the given dir for WAL");
269+
268270
DEFINE_bool(use_snapshot, false, "If true, create a snapshot per query when"
269271
" randomread benchmark is used");
270272

@@ -1478,6 +1480,7 @@ class Benchmark {
14781480
options.env = FLAGS_env;
14791481
options.disableDataSync = FLAGS_disable_data_sync;
14801482
options.use_fsync = FLAGS_use_fsync;
1483+
options.wal_dir = FLAGS_wal_dir;
14811484
options.num_levels = FLAGS_num_levels;
14821485
options.target_file_size_base = FLAGS_target_file_size_base;
14831486
options.target_file_size_multiplier = FLAGS_target_file_size_multiplier;

0 commit comments

Comments
 (0)