Minor fix to GFLAGS usage in persistent cache

Summary:
The general convention in RocksDB is to use GFLAGS instead of google. Fixing the anomaly.
Closes https://github.com/facebook/rocksdb/pull/1470

Differential Revision: D4149213

Pulled By: kradhakrishnan

fbshipit-source-id: 2dafa53
main
Karthik 8 years ago committed by Facebook Github Bot
parent a7875272d7
commit 85bd8f518b
  1. 4
      utilities/persistent_cache/hash_table_bench.cc
  2. 4
      utilities/persistent_cache/persistent_cache_bench.cc

@ -272,9 +272,9 @@ class GranularLockImpl : public HashTableImpl<size_t, string> {
// main // main
// //
int main(int argc, char** argv) { int main(int argc, char** argv) {
google::SetUsageMessage(std::string("\nUSAGE:\n") + std::string(argv[0]) + GFLAGS::SetUsageMessage(std::string("\nUSAGE:\n") + std::string(argv[0]) +
" [OPTIONS]..."); " [OPTIONS]...");
google::ParseCommandLineFlags(&argc, &argv, false); GFLAGS::ParseCommandLineFlags(&argc, &argv, false);
// //
// Micro benchmark unordered_map // Micro benchmark unordered_map

@ -302,9 +302,9 @@ class CacheTierBenchmark {
// main // main
// //
int main(int argc, char** argv) { int main(int argc, char** argv) {
google::SetUsageMessage(std::string("\nUSAGE:\n") + std::string(argv[0]) + GFLAGS::SetUsageMessage(std::string("\nUSAGE:\n") + std::string(argv[0]) +
" [OPTIONS]..."); " [OPTIONS]...");
google::ParseCommandLineFlags(&argc, &argv, false); GFLAGS::ParseCommandLineFlags(&argc, &argv, false);
std::ostringstream msg; std::ostringstream msg;
msg << "Config" << std::endl msg << "Config" << std::endl

Loading…
Cancel
Save