avoid unnecessary updating record version when using old update
@@ -142,8 +142,10 @@ public class OTransactionPhase2Task extends OAbstractReplicatedTask {
}
} else{
hasResponse = true;
+ if (OTransactionPhase1Task.useDeltasForUpdate){
updateRecordVersionsinCache(database, operations);
}
+ }
} else {
if (!((ODatabaseDocumentDistributed) database).rollback2pc(transactionId)) {
retryCount++;
