]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kv/RocksDBStore: rename option 11769/head
authorSage Weil <sage@redhat.com>
Thu, 3 Nov 2016 14:55:41 +0000 (10:55 -0400)
committerSage Weil <sage@redhat.com>
Thu, 3 Nov 2016 15:02:00 +0000 (11:02 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config_opts.h
src/kv/RocksDBStore.cc

index 268aee95ec2f6ad64666865986b2a15ac75c03c0..2bfb561404bffc95b797f08c1809fee45715b3d6 100644 (file)
@@ -863,6 +863,8 @@ OPTION(rocksdb_log_to_ceph_log, OPT_BOOL, true)  // log to ceph log
 OPTION(rocksdb_cache_size, OPT_INT, 128*1024*1024)  // default rocksdb cache size
 OPTION(rocksdb_cache_shard_bits, OPT_INT, 4)  // rocksdb block cache shard bits, 4 bit -> 16 shards
 OPTION(rocksdb_block_size, OPT_INT, 4*1024)  // default rocksdb block size
+OPTION(rocksdb_perf, OPT_BOOL, false) // rocksdb breakdown
+
 // rocksdb options that will be used for omap(if omap_backend is rocksdb)
 OPTION(filestore_rocksdb_options, OPT_STR, "")
 // rocksdb options that will be used in monstore
@@ -1011,7 +1013,6 @@ OPTION(bluestore_freelist_blocks_per_key, OPT_INT, 128)
 OPTION(bluestore_bitmapallocator_blocks_per_zone, OPT_INT, 1024) // must be power of 2 aligned, e.g., 512, 1024, 2048...
 OPTION(bluestore_bitmapallocator_span_size, OPT_INT, 1024) // must be power of 2 aligned, e.g., 512, 1024, 2048...
 OPTION(bluestore_rocksdb_options, OPT_STR, "compression=kNoCompression,max_write_buffer_number=4,min_write_buffer_number_to_merge=1,recycle_log_file_num=4,write_buffer_size=268435456")
-OPTION(bluestore_rocksdb_perf, OPT_BOOL, false) // rocksdb breakdown
 OPTION(bluestore_fsck_on_mount, OPT_BOOL, false)
 OPTION(bluestore_fsck_on_mount_deep, OPT_BOOL, true)
 OPTION(bluestore_fsck_on_umount, OPT_BOOL, false)
index f3e743d4d7810397e1a74d49f2921e9e3776a9ee..32807b5eb1ea9b908f03ad760fdf9a343f8824b5 100644 (file)
@@ -368,7 +368,7 @@ int RocksDBStore::submit_transaction(KeyValueDB::Transaction t)
   utime_t start = ceph_clock_now(g_ceph_context);
   // enable rocksdb breakdown
   // considering performance overhead, default is disabled
-  if (g_conf->bluestore_rocksdb_perf) {
+  if (g_conf->rocksdb_perf) {
     rocksdb::SetPerfLevel(rocksdb::PerfLevel::kEnableTimeExceptForMutex);
     rocksdb::perf_context.Reset();
   }
@@ -418,7 +418,7 @@ int RocksDBStore::submit_transaction_sync(KeyValueDB::Transaction t)
   utime_t start = ceph_clock_now(g_ceph_context);
   // enable rocksdb breakdown
   // considering performance overhead, default is disabled
-  if (g_conf->bluestore_rocksdb_perf) {
+  if (g_conf->rocksdb_perf) {
     rocksdb::SetPerfLevel(rocksdb::PerfLevel::kEnableTimeExceptForMutex);
     rocksdb::perf_context.Reset();
   }