From: Xiaoxi Chen Date: Mon, 30 Mar 2015 07:56:07 +0000 (+0800) Subject: Set disableDataSync to false X-Git-Tag: v9.0.0~56^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4213%2Fhead;p=ceph.git Set disableDataSync to false If datasync is disabled, we may potentially lose data on power failure. Signed-off-by: Xiaoxi Chen --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 894e2cab645c..20a8a87cca3c 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -728,7 +728,7 @@ OPTION(rocksdb_paranoid, OPT_BOOL, false) // RocksDB will aggressively check con OPTION(rocksdb_log, OPT_STR, "/dev/null") // enable rocksdb log file OPTION(rocksdb_info_log_level, OPT_STR, "info") // info log level : debug , info , warn, error, fatal OPTION(rocksdb_wal_dir, OPT_STR, "") // rocksdb write ahead log file, put it to fast device will benifit wrtie performance -OPTION(rocksdb_disableDataSync, OPT_BOOL, true) // if true, data files are not synced to stable storage +OPTION(rocksdb_disableDataSync, OPT_BOOL, false) // if true, data files are not synced to stable storage OPTION(rocksdb_disableWAL, OPT_BOOL, false) // if true, writes will not first go to the write ahead log