Skip to content

Commit

Permalink
Merge PR ceph#22612 into master
Browse files Browse the repository at this point in the history
* refs/pull/22612/head:
	kv/RocksDBStore: Don't use sync mode when disableWAL is set.

Reviewed-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Jan 15, 2019
2 parents f1505a0 + 647e0d8 commit 0334cc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kv/RocksDBStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0334cc1

Please sign in to comment.