Skip to content

Commit

Permalink
Fix Rocksdb lite build failure in forward_iterator_bench
Browse files Browse the repository at this point in the history
Summary:
Fixed Rocksdb lite build failure in forward_iterator_bench by
defining main for the ROCKSDB_LITE case

Test Plan: build ROCKSDB_LITE

Reviewers: anthony, yhchiang, IslamAbdelRahman, sdong

Reviewed By: sdong

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D50733
  • Loading branch information
rven1 committed Nov 16, 2015
1 parent 7824444 commit d06b63e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions db/forward_iterator_bench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
#define __STDC_FORMAT_MACROS
#endif

#ifndef GFLAGS
#if !defined(GFLAGS) || defined(ROCKSDB_LITE)
#include <cstdio>
int main() {
fprintf(stderr, "Please install gflags to run rocksdb tools\n");
return 1;
}
#else

#ifndef ROCKSDB_LITE
#include <gflags/gflags.h>
#include <semaphore.h>
#include <atomic>
Expand Down Expand Up @@ -369,7 +367,4 @@ int main(int argc, char** argv) {
writers.clear();
readers.clear();
}

#endif // ROCKSDB_LITE

#endif // GFLAGS
#endif // !defined(GFLAGS) || defined(ROCKSDB_LITE)

0 comments on commit d06b63e

Please sign in to comment.