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