From 9dd50d990290b3d72357559d01e3138cce34246d Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Tue, 24 May 2016 17:27:44 -0700 Subject: [PATCH] Fix db_bench Summary: Fix simple issue with FLAGS_simcache_size condition Test Plan: run db_bench Reviewers: lightmark Reviewed By: lightmark Subscribers: andrewkr, dhruba Differential Revision: https://reviews.facebook.net/D58743 --- 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 5d38bd597..5f59791f0 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -2117,7 +2117,7 @@ class Benchmark { if (FLAGS_statistics) { fprintf(stdout, "STATISTICS:\n%s\n", dbstats->ToString().c_str()); } - if (FLAGS_simcache_size) { + if (FLAGS_simcache_size >= 0) { fprintf(stdout, "SIMULATOR CACHE STATISTICS:\n%s\n", std::dynamic_pointer_cast(cache_)->ToString().c_str()); }