Skip to content

Commit 00a556c

Browse files
committed
MDEV-15372: Parallel slave speedup very limited when log_slave_updates=OFF
Part #2: some transactions have m_rocksdb_tx==NULL (and most functions of Rdb_transction_impl handle this case. Do like they do)
1 parent 01e89d6 commit 00a556c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage/rocksdb/ha_rocksdb.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,8 @@ class Rdb_transaction_impl : public Rdb_transaction {
22402240
}
22412241

22422242
void set_sync(bool sync) override {
2243-
m_rocksdb_tx->GetWriteOptions()->sync = sync;
2243+
if (m_rocksdb_tx)
2244+
m_rocksdb_tx->GetWriteOptions()->sync = sync;
22442245
}
22452246

22462247
void release_lock(rocksdb::ColumnFamilyHandle *const column_family,

0 commit comments

Comments
 (0)