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)
  • Loading branch information
HangyuanLiu authored Sep 20, 2024
1 parent 37db37f commit 7fd1582
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 7fd1582

Please sign in to comment.