Skip to content

Commit

Permalink
MDEV-15372: Parallel slave speedup very limited when log_slave_update…
Browse files Browse the repository at this point in the history
…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.
3 changes: 2 additions & 1 deletion storage/rocksdb/ha_rocksdb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 00a556c

Please sign in to comment.