2016-02-10 00:12:00 +01:00
|
|
|
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
|
2017-07-16 01:03:42 +02: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 23:59:46 +02:00
|
|
|
//
|
2014-11-12 22:05:12 +01:00
|
|
|
#ifndef ROCKSDB_LITE
|
2012-09-25 01:53:13 +02:00
|
|
|
|
2014-04-15 20:29:02 +02:00
|
|
|
#include "rocksdb/ldb_tool.h"
|
2012-09-26 17:06:19 +02:00
|
|
|
|
2012-10-31 19:47:18 +01:00
|
|
|
int main(int argc, char** argv) {
|
2020-02-20 21:07:53 +01:00
|
|
|
ROCKSDB_NAMESPACE::LDBTool tool;
|
2013-04-12 05:21:49 +02:00
|
|
|
tool.Run(argc, argv);
|
|
|
|
return 0;
|
2012-09-26 17:06:19 +02:00
|
|
|
}
|
2014-11-12 22:05:12 +01:00
|
|
|
#else
|
|
|
|
#include <stdio.h>
|
2018-04-13 02:55:14 +02:00
|
|
|
int main(int /*argc*/, char** /*argv*/) {
|
2014-11-12 22:05:12 +01:00
|
|
|
fprintf(stderr, "Not supported in lite mode.\n");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
#endif // ROCKSDB_LITE
|