From f9eb56791a0f4b2f9bf2b4da67ba59292f43db20 Mon Sep 17 00:00:00 2001 From: Siying Dong Date: Mon, 31 Oct 2016 14:50:40 -0700 Subject: [PATCH] db_bench: --dump_malloc_stats takes no effect Summary: Fix the bug that --dump_malloc_stats is set before opening the DB. Closes https://github.com/facebook/rocksdb/pull/1447 Differential Revision: D4106001 Pulled By: siying fbshipit-source-id: 4e746da --- tools/db_bench_tool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index 453c6dcae..1c7c44590 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -2987,6 +2987,7 @@ class Benchmark { options.statistics = dbstats; options.wal_dir = FLAGS_wal_dir; options.create_if_missing = !FLAGS_use_existing_db; + options.dump_malloc_stats = FLAGS_dump_malloc_stats; if (FLAGS_row_cache_size) { if (FLAGS_cache_numshardbits >= 1) { @@ -3032,7 +3033,6 @@ class Benchmark { } options.wal_dir = wal_dir; } - options.dump_malloc_stats = FLAGS_dump_malloc_stats; } void Open(Options* opts) {