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