Skip to content

Commit

Permalink
Tiny fix to db_bench for make release.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dojiboy9 committed Aug 16, 2013
1 parent ad48c3c commit d1d3d15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/db_bench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d1d3d15

Please sign in to comment.