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 (backport #51039) (#51228)

Co-authored-by: Harbor Liu <[email protected]>
  • Loading branch information
mergify[bot] and HangyuanLiu authored Sep 20, 2024
1 parent 203310f commit 43520a5
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 43520a5

Please sign in to comment.