calling appropriate method to set version
@@ -25,6 +25,7 @@ import com.orientechnologies.orient.core.delta.ODocumentDelta;
import com.orientechnologies.orient.core.id.ORID;
import com.orientechnologies.orient.core.record.ORecord;
import com.orientechnologies.orient.core.record.ORecordAbstract;
+import com.orientechnologies.orient.core.record.ORecordInternal;
import com.orientechnologies.orient.core.tx.OTransactionInternal;
import com.orientechnologies.orient.server.distributed.ODistributedDatabase;
import com.orientechnologies.orient.server.distributed.ODistributedTxContext;
@@ -106,8 +107,7 @@ public class OTransactionPhase2Task extends OAbstractReplicatedTask {
ORID id = deltaRecord.getIdentity();
ORecord rec = cache.findRecord(id);
if (rec != null && rec instanceof ORecordAbstract){
- ORecordAbstract record = (ORecordAbstract)rec;
- record.setVersion(version);
+ ORecordInternal.setVersion(rec, version);
}
}
}
