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 20, 2024
1 parent 51501da commit 283eb73
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 283eb73

Please sign in to comment.