From 7c16916d2545fe210b487e9cf3817121ce6e1cac Mon Sep 17 00:00:00 2001 From: Xiaoxi Chen Date: Fri, 8 May 2015 16:34:45 +0800 Subject: [PATCH] keyvaluestore:use keyvaluestore_rocksdb_options if backend is rocksdb use keyvaluestore_rocksdb_options if using Rocksdb as backend. Signed-off-by: Xiaoxi Chen --- src/os/KeyValueStore.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/os/KeyValueStore.cc b/src/os/KeyValueStore.cc index a1c02608af7b9..589227f987f53 100644 --- a/src/os/KeyValueStore.cc +++ b/src/os/KeyValueStore.cc @@ -907,7 +907,10 @@ int KeyValueStore::mount() } - store->init(); + if (superblock.backend == "rocksdb") + store->init(g_conf->keyvaluestore_rocksdb_options); + else + store->init(); stringstream err; if (store->open(err)) { derr << "KeyValueStore::mount Error initializing keyvaluestore backend " -- 2.39.5