From 4e0602f941c8c30f2ce3c01f74228547cd5a5b3e Mon Sep 17 00:00:00 2001 From: sdong Date: Wed, 14 May 2014 08:53:09 -0700 Subject: [PATCH] Remove maximum key_size check in db_bench 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 --- db/db_bench.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/db/db_bench.cc b/db/db_bench.cc index 115443010..dbd8cecd9 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -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; }