]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/RocksDBStore: compact_on_mount not support now
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Fri, 8 May 2015 15:07:20 +0000 (23:07 +0800)
committerXiaoxi Chen <xiaoxi.chen@intel.com>
Wed, 13 May 2015 00:22:45 +0000 (08:22 +0800)
will fix it.

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

index 908f7915d2348ffbbd244a4ce9d0e0554d50df5f..4c600d8be4b973d36bfed7f8935daa01dfd34c5b 100644 (file)
@@ -64,11 +64,11 @@ int RocksDBStore::do_open(ostream &out, bool create_if_missing)
   logger = plb.create_perf_counters();
   cct->get_perfcounters_collection()->add(logger);
 
-  if (g_conf->rocksdb_compact_on_mount) {
-    derr << "Compacting rocksdb store..." << dendl;
-    compact();
-    derr << "Finished compacting rocksdb store" << dendl;
-  }
// if (g_conf->rocksdb_compact_on_mount) {
+   // derr << "Compacting rocksdb store..." << dendl;
+    //compact();
+    //derr << "Finished compacting rocksdb store" << dendl;
// }
   return 0;
 }