]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/RocksDBStore: log any options we pass to rocksdb 5611/head
authorSage Weil <sage@redhat.com>
Wed, 19 Aug 2015 21:03:28 +0000 (17:03 -0400)
committerSage Weil <sage@redhat.com>
Wed, 19 Aug 2015 21:04:35 +0000 (17:04 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/RocksDBStore.cc

index 55f1b35ee33f7c033c8663a702d8a62b07e28578..621b0bfea105a73d44b82df74a833148cc7ce8e5 100644 (file)
@@ -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<string, string> 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<string, string>::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;
 }