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.
|
2017-04-28 00:50:56 +00: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 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) {
|
2014-11-08 01:23:58 +00:00
|
|
|
rocksdb::SSTDumpTool tool;
|
|
|
|
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>
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
fprintf(stderr, "Not supported in lite mode.\n");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
#endif // ROCKSDB_LITE
|