From f021e91e618c1bb73c57604def584bca468a4ac2 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 19 Aug 2015 17:03:28 -0400 Subject: [PATCH] os/RocksDBStore: log any options we pass to rocksdb Signed-off-by: Sage Weil --- src/os/RocksDBStore.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/os/RocksDBStore.cc b/src/os/RocksDBStore.cc index 55f1b35ee33f7..621b0bfea105a 100644 --- a/src/os/RocksDBStore.cc +++ b/src/os/RocksDBStore.cc @@ -73,7 +73,7 @@ int RocksDBStore::tryInterpret(const string key, const string val, rocksdb::Opti int RocksDBStore::ParseOptionsFromString(const string opt_str, rocksdb::Options &opt) { map str_map; - int r = get_str_map(opt_str, "\n;", &str_map); + int r = get_str_map(opt_str, ",\n;", &str_map); if (r < 0) return r; map::iterator it; @@ -88,6 +88,8 @@ int RocksDBStore::ParseOptionsFromString(const string opt_str, rocksdb::Options return -EINVAL; } } + lgeneric_dout(cct, 0) << " set rocksdb option " << it->first + << " = " << it->second << dendl; } return 0; } -- 2.39.5