Skip to content

Commit

Permalink
fix wal bug (#154)
Browse files Browse the repository at this point in the history
Co-authored-by: tugraph <[email protected]>
  • Loading branch information
lipanpan03 and tugraph authored Jan 27, 2023
1 parent 8121e02 commit 49a9c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/kv_store_transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ void KvTransaction::Commit() {
void KvTransaction::Abort() {
deltas_.clear();
if (txn_) {
MdbTxnAbort(txn_);
if (!read_only_ && !optimistic_ && wal_) wal_->WriteTxnAbort(version_);
MdbTxnAbort(txn_);
txn_ = nullptr;
}
}
Expand Down

0 comments on commit 49a9c66

Please sign in to comment.