2016-02-09 23:12:00 +00:00
|
|
|
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
|
2013-10-16 21:59:46 +00: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.
|
|
|
|
//
|
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
|