Skip to content

Commit

Permalink
Fix db_bench's multireadrandom
Browse files Browse the repository at this point in the history
Summary: multireadrandom is broken. Fix it

Test Plan: run it and see segfault has gone.

Reviewers: ljin

Reviewed By: ljin

CC: leveldb

Differential Revision: https://reviews.facebook.net/D17781
  • Loading branch information
siying committed Apr 14, 2014
1 parent 118f88d commit c87ed09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/db_bench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,7 @@ class Benchmark {
int64_t read = 0;
int64_t found = 0;
ReadOptions options(FLAGS_verify_checksum, true);
std::vector<Slice> keys(entries_per_batch_);
std::vector<Slice> keys;
std::vector<std::string> values(entries_per_batch_);
while (keys.size() < entries_per_batch_) {
keys.push_back(AllocateKey());
Expand Down

0 comments on commit c87ed09

Please sign in to comment.