]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Set disableDataSync to false 4213/head
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Mon, 30 Mar 2015 07:56:07 +0000 (15:56 +0800)
committerXiaoxi Chen <xiaoxi.chen@intel.com>
Tue, 31 Mar 2015 00:44:57 +0000 (08:44 +0800)
If datasync is disabled, we may potentially lose data
on power failure.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
src/common/config_opts.h

index 894e2cab645c0ae1e8c1aadaf39c37b2e77f3c8f..20a8a87cca3c86e79b25bfd89011800668cc0847 100644 (file)
@@ -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