From 4c122c1a46309279bd11dfc54b0b6a366ef18879 Mon Sep 17 00:00:00 2001 From: Xiaoxi Chen Date: Mon, 30 Mar 2015 15:56:07 +0800 Subject: [PATCH] Set disableDataSync to false If datasync is disabled, we may potentially lose data on power failure. Signed-off-by: Xiaoxi Chen --- src/common/config_opts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3