Skip to content

Commit

Permalink
Remove maximum key_size check in db_bench
Browse files Browse the repository at this point in the history
Summary: Key size limit doesn't seem to be applicable anymore. Remove it.

Test Plan: run a couple of tests in db_bench

Reviewers: haobo, igor, yhchiang, dhruba

Reviewed By: igor

CC: leveldb

Differential Revision: https://reviews.facebook.net/D18723
  • Loading branch information
siying committed May 15, 2014
1 parent f3ec191 commit 4e0602f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions db/db_bench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,7 @@ DEFINE_int32(duration, 0, "Time in seconds for the random-ops tests to run."
DEFINE_int32(value_size, 100, "Size of each value");


// the maximum size of key in bytes
static const int kMaxKeySize = 128;
static bool ValidateKeySize(const char* flagname, int32_t value) {
if (value > kMaxKeySize) {
fprintf(stderr, "Invalid value for --%s: %d, must be < %d\n",
flagname, value, kMaxKeySize);
return false;
}
return true;
}

Expand Down

0 comments on commit 4e0602f

Please sign in to comment.