Merge PR #22612 into master

* refs/pull/22612/head:
	kv/RocksDBStore: Don't use sync mode when disableWAL is set.

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2019-01-14 20:49:51 -06:00
commit 0334cc19fa

View File

@ -823,7 +823,8 @@ int RocksDBStore::submit_transaction_sync(KeyValueDB::Transaction t)
{
utime_t start = ceph_clock_now();
rocksdb::WriteOptions woptions;
woptions.sync = true;
// if disableWAL, sync can't set
woptions.sync = !disableWAL;
int result = submit_common(woptions, t);