2016-02-10 00:12:00 +01:00
|
|
|
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
|
2013-10-16 23:59:46 +02:00
|
|
|
// This source code is licensed under the BSD-style license found in the
|
|
|
|
// LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
// of patent rights can be found in the PATENTS file in the same directory.
|
2017-04-28 02:50:56 +02:00
|
|
|
// This source code is also licensed under the GPLv2 license found in the
|
|
|
|
// COPYING file in the root directory of this source tree.
|
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) {
|
2013-10-04 06:49:15 +02:00
|
|
|
rocksdb::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>
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
fprintf(stderr, "Not supported in lite mode.\n");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
#endif // ROCKSDB_LITE
|