From: xinxin shu Date: Mon, 4 Aug 2014 22:24:44 +0000 (+0800) Subject: add annotation for rocksdb config option X-Git-Tag: v0.85~91^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b9b022e5de2d32283bd9009808f8ea777809cdb8;p=ceph.git add annotation for rocksdb config option Signed-off-by: xinxin shu --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 61e09d83ae88..d3b25350f595 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -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 /**