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
|
|
|
//
|
2012-10-03 16:58:45 +00:00
|
|
|
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
2013-02-21 01:37:13 +00:00
|
|
|
|
2014-05-09 00:25:13 +00:00
|
|
|
#ifndef GFLAGS
|
|
|
|
#include <cstdio>
|
2019-10-18 16:45:23 +00:00
|
|
|
|
2014-05-09 00:25:13 +00:00
|
|
|
int main() {
|
|
|
|
fprintf(stderr, "Please install gflags to run rocksdb tools\n");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
#else
|
2022-09-19 22:39:31 +00:00
|
|
|
#include "port/stack_trace.h"
|
2021-09-08 04:18:21 +00:00
|
|
|
#include "rocksdb/db_stress_tool.h"
|
2014-05-09 00:25:13 +00:00
|
|
|
|
2020-02-20 20:07:53 +00:00
|
|
|
int main(int argc, char** argv) {
|
2022-09-19 22:39:31 +00:00
|
|
|
ROCKSDB_NAMESPACE::port::InstallStackTraceHandler();
|
2020-02-20 20:07:53 +00:00
|
|
|
return ROCKSDB_NAMESPACE::db_stress_tool(argc, argv);
|
|
|
|
}
|
2014-05-09 00:25:13 +00:00
|
|
|
#endif // GFLAGS
|