From b9b022e5de2d32283bd9009808f8ea777809cdb8 Mon Sep 17 00:00:00 2001 From: xinxin shu Date: Tue, 5 Aug 2014 06:24:44 +0800 Subject: [PATCH] add annotation for rocksdb config option Signed-off-by: xinxin shu --- src/common/config_opts.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 /** -- 2.47.3