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
|
2019-10-18 16:45:23 +00:00
|
|
|
#include <rocksdb/db_stress_tool.h>
|
2014-05-09 00:25:13 +00:00
|
|
|
|
2019-10-18 16:45:23 +00:00
|
|
|
int main(int argc, char** argv) { return rocksdb::db_stress_tool(argc, argv); }
|
2014-05-09 00:25:13 +00:00
|
|
|
#endif // GFLAGS
|