]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
add annotation for rocksdb config option
authorxinxin shu <xinxin.shu@intel.com>
Mon, 4 Aug 2014 22:24:44 +0000 (06:24 +0800)
committerxinxin shu <xinxin.shu@intel.com>
Mon, 4 Aug 2014 22:24:44 +0000 (06:24 +0800)
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
src/common/config_opts.h

index 61e09d83ae88f553a5672767854890dcf89b8fc4..d3b25350f595d00a6069665988e535d2a4b9ea54 100644 (file)
@@ -591,12 +591,12 @@ OPTION(rocksdb_max_open_files, OPT_INT, 0) // rocksdb max open files
 OPTION(rocksdb_compression, OPT_STR, "") // rocksdb uses compression : none, snappy, zlib, bzip2
 OPTION(rocksdb_paranoid, OPT_BOOL, false) // rocksdb paranoid flag
 OPTION(rocksdb_log, OPT_STR, "/dev/null")  // enable rocksdb log file
-OPTION(rocksdb_level0_file_num_compaction_trigger, OPT_U64, 0)
-OPTION(rocksdb_level0_slowdown_writes_trigger, OPT_U64, 0)
-OPTION(rocksdb_level0_stop_writes_trigger, OPT_U64, 0)
-OPTION(rocksdb_disableDataSync, OPT_BOOL, true)
-OPTION(rocksdb_disableWAL, OPT_BOOL, false)
-OPTION(rocksdb_num_levels, OPT_INT, 0)
+OPTION(rocksdb_level0_file_num_compaction_trigger, OPT_U64, 0) // Number of files to trigger level-0 compaction
+OPTION(rocksdb_level0_slowdown_writes_trigger, OPT_U64, 0)  // number of level-0 files at which we start slowing down write.
+OPTION(rocksdb_level0_stop_writes_trigger, OPT_U64, 0)  // number of level-0 files at which we stop writes
+OPTION(rocksdb_disableDataSync, OPT_BOOL, true) // if true, data files are not synced to stable storage
+OPTION(rocksdb_disableWAL, OPT_BOOL, false)  // diable write ahead log
+OPTION(rocksdb_num_levels, OPT_INT, 0) // number of levels for this database
 OPTION(rocksdb_wal_dir, OPT_STR, "")  //  rocksdb write ahead log file
 
 /**