From d1d3d15eb78d31a2fc967fc4da2ca2246ff62028 Mon Sep 17 00:00:00 2001 From: Deon Nicholas Date: Thu, 15 Aug 2013 17:50:12 -0700 Subject: [PATCH] Tiny fix to db_bench for make release. Summary: In release, "found variable assigned but not used anywhere". Changed it to work with assert. Someone accept this :). Test Plan: make release -j 32 Reviewers: haobo, dhruba, emayanke Reviewed By: haobo CC: leveldb Differential Revision: https://reviews.facebook.net/D12309 --- db/db_bench.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db/db_bench.cc b/db/db_bench.cc index 5e1bb4d26..805ac552f 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -1487,7 +1487,9 @@ class Benchmark { // We should not find any key since the key we try to get has a // different suffix - assert(!found); + if (found) { + assert(false); + } thread->stats.FinishedSingleOp(db_); keys_left -= num_keys;