@@ -1475,12 +1475,7 @@ protected void unprotectedPreCommitTransaction2PC(TransactionState transactionSt
1475
1475
}
1476
1476
// persist transactionState
1477
1477
unprotectUpsertTransactionState (transactionState , false );
1478
-
1479
- // add publish version tasks. set task to null as a placeholder.
1480
- // tasks will be created when publishing version.
1481
- for (long backendId : totalInvolvedBackends ) {
1482
- transactionState .addPublishVersionTask (backendId , null );
1483
- }
1478
+ transactionState .setInvolvedBackends (totalInvolvedBackends );
1484
1479
}
1485
1480
1486
1481
private PartitionCommitInfo generatePartitionCommitInfo (OlapTable table , long partitionId , long partitionVersion ) {
@@ -1508,12 +1503,7 @@ protected void unprotectedCommitTransaction(TransactionState transactionState, S
1508
1503
}
1509
1504
// persist transactionState
1510
1505
unprotectUpsertTransactionState (transactionState , false );
1511
-
1512
- // add publish version tasks. set task to null as a placeholder.
1513
- // tasks will be created when publishing version.
1514
- for (long backendId : totalInvolvedBackends ) {
1515
- transactionState .addPublishVersionTask (backendId , null );
1516
- }
1506
+ transactionState .setInvolvedBackends (totalInvolvedBackends );
1517
1507
}
1518
1508
1519
1509
private void checkBeforeUnprotectedCommitTransaction (TransactionState transactionState , Set <Long > errorReplicaIds ) {
@@ -1581,9 +1571,6 @@ protected void unprotectedCommitTransaction(TransactionState transactionState, S
1581
1571
}
1582
1572
// persist transactionState
1583
1573
unprotectUpsertTransactionState (transactionState , false );
1584
-
1585
- // add publish version tasks. set task to null as a placeholder.
1586
- // tasks will be created when publishing version.
1587
1574
transactionState .setInvolvedBackends (totalInvolvedBackends );
1588
1575
}
1589
1576
0 commit comments