2016-02-09 23:12:00 +00:00
|
|
|
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
|
2017-07-15 23:03:42 +00:00
|
|
|
// This source code is licensed under both the GPLv2 (found in the
|
|
|
|
// COPYING file in the root directory) and Apache 2.0 License
|
|
|
|
// (found in the LICENSE.Apache file in the root directory).
|
2013-10-16 21:59:46 +00:00
|
|
|
//
|
2014-11-12 21:05:12 +00:00
|
|
|
#ifndef ROCKSDB_LITE
|
2012-09-24 23:53:13 +00:00
|
|
|
|
2014-04-15 18:29:02 +00:00
|
|
|
#include "rocksdb/ldb_tool.h"
|
2012-09-26 15:06:19 +00:00
|
|
|
|
2012-10-31 18:47:18 +00:00
|
|
|
int main(int argc, char** argv) {
|
2013-10-04 04:49:15 +00:00
|
|
|
rocksdb::LDBTool tool;
|
2013-04-12 03:21:49 +00:00
|
|
|
tool.Run(argc, argv);
|
|
|
|
return 0;
|
2012-09-26 15:06:19 +00:00
|
|
|
}
|
2014-11-12 21:05:12 +00:00
|
|
|
#else
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
fprintf(stderr, "Not supported in lite mode.\n");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
#endif // ROCKSDB_LITE
|