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-08-24 20:28:59 +02:00
|
|
|
|
2014-11-08 02:23:58 +01:00
|
|
|
#include "rocksdb/sst_dump_tool.h"
|
2013-08-07 22:36:26 +02:00
|
|
|
|
2012-08-24 20:28:59 +02:00
|
|
|
int main(int argc, char** argv) {
|
2020-02-20 21:07:53 +01:00
|
|
|
ROCKSDB_NAMESPACE::SSTDumpTool tool;
|
2020-06-08 22:56:22 +02:00
|
|
|
return tool.Run(argc, argv);
|
2012-08-24 20:28:59 +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
|