Skip to content

Commit

Permalink
Set disableDataSync to false
Browse files Browse the repository at this point in the history
If datasync is disabled, we may potentially lose data
on power failure.

Signed-off-by: Xiaoxi Chen <[email protected]>
  • Loading branch information
xiaoxichen819 committed Mar 31, 2015
1 parent 0bd767f commit 4c122c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/config_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 4c122c1

Please sign in to comment.