Skip to content
Permalink
Browse files
MDEV-15372: Parallel slave speedup very limited when log_slave_update…
…s=OFF

Part #2: some transactions have m_rocksdb_tx==NULL (and most functions of
Rdb_transction_impl handle this case. Do like they do)
  • Loading branch information
spetrunia committed Feb 21, 2018
1 parent 01e89d6 commit 00a556c
Showing 1 changed file with 2 additions and 1 deletion.
@@ -2240,7 +2240,8 @@ class Rdb_transaction_impl : public Rdb_transaction {
}

void set_sync(bool sync) override {
m_rocksdb_tx->GetWriteOptions()->sync = sync;
if (m_rocksdb_tx)
m_rocksdb_tx->GetWriteOptions()->sync = sync;
}

void release_lock(rocksdb::ColumnFamilyHandle *const column_family,

0 comments on commit 00a556c

Please sign in to comment.