From: Sage Weil Date: Wed, 19 Aug 2015 21:03:28 +0000 (-0400) Subject: os/RocksDBStore: log any options we pass to rocksdb X-Git-Tag: v9.1.0~324^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f021e91e618c1bb73c57604def584bca468a4ac2;p=ceph.git os/RocksDBStore: log any options we pass to rocksdb Signed-off-by: Sage Weil --- 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; }