]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/FileStore:use omap_rocksdb_options if backend is Rocksdb
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Fri, 8 May 2015 08:22:32 +0000 (16:22 +0800)
committerXiaoxi Chen <xiaoxi.chen@intel.com>
Wed, 13 May 2015 00:22:45 +0000 (08:22 +0800)
use omap_rocksdb_options if using RocksDB as omap backend.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
src/os/FileStore.cc

index 1e6ac23dbd69a71c5b4fc9c4aa63e37ec4c5d658..6b25c9937bbc8e2786d19bf6755f144eb640b841 100644 (file)
@@ -1467,7 +1467,10 @@ int FileStore::mount()
       goto close_current_fd;
     }
 
-    omap_store->init();
+    if (superblock.omap_backend == "rocksdb")
+      omap_store->init(g_conf->omap_rocksdb_options);
+    else
+      omap_store->init();
 
     stringstream err;
     if (omap_store->create_and_open(err)) {