]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: change bluestore_backend to bluestore_kvbackend. 7658/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 16 Feb 2016 16:24:27 +0000 (00:24 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 16 Feb 2016 16:59:15 +0000 (00:59 +0800)
In fact, bluestore_backend is kvbackend. So change it to
bluestore_kvbackend looks better.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/common/config_opts.h
src/os/bluestore/BlueStore.cc

index de55865b811992896c7f972933e70867e3b2d64c..b919c8e24fb9620e9cf74cef63cdff6508134626 100644 (file)
@@ -910,7 +910,7 @@ OPTION(bluestore_max_dir_size, OPT_U32, 1000000)
 OPTION(bluestore_min_alloc_size, OPT_U32, 64*1024)
 OPTION(bluestore_onode_map_size, OPT_U32, 1024)   // onodes per collection
 OPTION(bluestore_cache_tails, OPT_BOOL, true)   // cache tail blocks in Onode
-OPTION(bluestore_backend, OPT_STR, "rocksdb")
+OPTION(bluestore_kvbackend, OPT_STR, "rocksdb")
 OPTION(bluestore_rocksdb_options, OPT_STR, "compression=kNoCompression,max_write_buffer_number=16,min_write_buffer_number_to_merge=3,recycle_log_file_num=16")
 OPTION(bluestore_fsck_on_mount, OPT_BOOL, false)
 OPTION(bluestore_fsck_on_umount, OPT_BOOL, false)
index 6d18b936d40a3ec5256434b232b9f9420513f967..eb816fc32466794709935399f3c3478ca82c3955 100644 (file)
@@ -1132,7 +1132,7 @@ int BlueStore::_open_db(bool create)
 
   string kv_backend;
   if (create) {
-    kv_backend = g_conf->bluestore_backend;
+    kv_backend = g_conf->bluestore_kvbackend;
   } else {
     r = read_meta("kv_backend", &kv_backend);
     if (r < 0) {
@@ -1781,7 +1781,7 @@ int BlueStore::mkfs()
     db->submit_transaction_sync(t);
   }
 
-  r = write_meta("kv_backend", g_conf->bluestore_backend);
+  r = write_meta("kv_backend", g_conf->bluestore_kvbackend);
   if (r < 0)
     goto out_close_alloc;
   r = write_meta("bluefs", stringify((int)g_conf->bluestore_bluefs));