mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
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:
commit
0334cc19fa
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user