From 85bd8f518b55782f2fada586eabc953df15478e1 Mon Sep 17 00:00:00 2001 From: Karthik Date: Tue, 8 Nov 2016 12:52:17 -0800 Subject: [PATCH] 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 --- utilities/persistent_cache/hash_table_bench.cc | 4 ++-- utilities/persistent_cache/persistent_cache_bench.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utilities/persistent_cache/hash_table_bench.cc b/utilities/persistent_cache/hash_table_bench.cc index f761ebe0d..a46b649f1 100644 --- a/utilities/persistent_cache/hash_table_bench.cc +++ b/utilities/persistent_cache/hash_table_bench.cc @@ -272,9 +272,9 @@ class GranularLockImpl : public HashTableImpl { // main // 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]..."); - google::ParseCommandLineFlags(&argc, &argv, false); + GFLAGS::ParseCommandLineFlags(&argc, &argv, false); // // Micro benchmark unordered_map diff --git a/utilities/persistent_cache/persistent_cache_bench.cc b/utilities/persistent_cache/persistent_cache_bench.cc index 38b0cd322..5b0152059 100644 --- a/utilities/persistent_cache/persistent_cache_bench.cc +++ b/utilities/persistent_cache/persistent_cache_bench.cc @@ -302,9 +302,9 @@ class CacheTierBenchmark { // main // 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]..."); - google::ParseCommandLineFlags(&argc, &argv, false); + GFLAGS::ParseCommandLineFlags(&argc, &argv, false); std::ostringstream msg; msg << "Config" << std::endl