Skip to content

Commit

Permalink
[BugFix] Fix stream load with no-2pc mistake write prepare edit log b…
Browse files Browse the repository at this point in the history
…ug (#51039)

(cherry picked from commit 7fd1582)
  • Loading branch information
HangyuanLiu authored and mergify[bot] committed Sep 20, 2024
1 parent 203310f commit 67943a3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,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 67943a3

Please sign in to comment.