Fix db_bench for release build.

Test Plan: make release

Reviewers: haobo, dhruba, jpaton

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D11307
This commit is contained in:
Deon Nicholas 2013-06-14 16:00:47 -07:00
parent 1afdf28701
commit 2a52e1dcb6

View File

@ -1388,7 +1388,9 @@ void ReadMissing(ThreadState* thread) {
long found; long found;
while(num_keys = std::min(keys_left, kpg), !duration.Done(num_keys)) { while(num_keys = std::min(keys_left, kpg), !duration.Done(num_keys)) {
found = MultiGetRandom(options, num_keys, thread->rand, FLAGS_num,"."); found = MultiGetRandom(options, num_keys, thread->rand, FLAGS_num,".");
assert(!found); if (!found) {
assert(false);
}
thread->stats.FinishedSingleOp(db_); thread->stats.FinishedSingleOp(db_);
keys_left -= num_keys; keys_left -= num_keys;
} }