filter_bench not needed for ROCKSDB_LITE (#5978)

Summary:
filter_bench is a specialized micro-benchmarking tool that
should not be needed with ROCKSDB_LITE. This should fix the LITE build.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5978

Test Plan: make LITE=1 check

Differential Revision: D18177941

Pulled By: pdillinger

fbshipit-source-id: b73a171404661e09e018bc99afcf8d4bf1e2949c
This commit is contained in:
Peter Dillinger 2019-10-28 14:10:51 -07:00 committed by Facebook Github Bot
parent 79018ba51b
commit 26dc29633e

View File

@ -3,10 +3,10 @@
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#ifndef GFLAGS
#if !defined(GFLAGS) || defined(ROCKSDB_LITE)
#include <cstdio>
int main() {
fprintf(stderr, "Please install gflags to run rocksdb tools\n");
fprintf(stderr, "filter_bench requires gflags and !ROCKSDB_LITE\n");
return 1;
}
#else
@ -660,4 +660,4 @@ int main(int argc, char **argv) {
return 0;
}
#endif // GFLAGS
#endif // !defined(GFLAGS) || defined(ROCKSDB_LITE)