Skip to content

Commit

Permalink
Update fe/fe-core/src/main/java/com/starrocks/transaction/OlapTableTx…
Browse files Browse the repository at this point in the history
…nLogApplier.java

Co-authored-by: wyb <[email protected]>
Signed-off-by: zhanghe <[email protected]>
  • Loading branch information
zhangheihei and wyb authored Dec 16, 2024
1 parent 843f6c3 commit 2138b9c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ public void applyVisibleLog(TransactionState txnState, TableCommitInfo commitInf
long lastFailedVersion = replica.getLastFailedVersion();
long newVersion = version;
long lastSucessVersion = replica.getLastSuccessVersion();
if (!txnState.tabletCommitInfosContainsReplica(tablet.getId(), replica.getBackendId(),
replica.getState())
if (transactionState.checkReplicaNeedSkip(tablet, replica, partitionCommitInfo)
|| errorReplicaIds.contains(replica.getId())) {
// There are 2 cases that we can't update version to visible version and need to
// set lastFailedVersion.
Expand Down

0 comments on commit 2138b9c

Please sign in to comment.