Skip to content

Commit

Permalink
Fix stream load with no-2pc mistake write prepare edit log bug
Browse files Browse the repository at this point in the history
  • Loading branch information
HangyuanLiu committed Sep 14, 2024
1 parent 72f95bf commit 008e22e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,9 @@ public void prepareTransaction(long transactionId, List<TabletCommitInfo> tablet
// after state transform
transactionState.afterStateTransform(TransactionStatus.PREPARED, txnOperated, callback, null);
}

persistTxnStateInTxnLevelLock(transactionState);
if (writeEditLog) {
persistTxnStateInTxnLevelLock(transactionState);
}

LOG.info("transaction:[{}] successfully prepare", transactionState);
} finally {
Expand Down

0 comments on commit 008e22e

Please sign in to comment.