Skip to content

Commit

Permalink
forced dirty on distributed delta deserialization also if no changes …
Browse files Browse the repository at this point in the history
…are present
  • Loading branch information
tglman committed Sep 30, 2019
1 parent bcdc5b3 commit 000d828
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ record = ORecordSerializerNetworkDistributed.INSTANCE.fromStream(req.getRecord()
if (req.getRecordType() == ODocument.RECORD_TYPE) {
record = database.load(req.getId());
ODocumentSerializerDelta.instance().deserializeDelta(req.getRecord(), (ODocument) record);
/// Got record with empty deltas, at this level we mark the record dirty anyway.
if (record.isDirty()) {
ODocumentSerializerDelta.instance().deserializeDelta(req.getRecord(), (ODocument) record);
}
record.setDirty();
} else {
record = ORecordSerializerNetworkDistributed.INSTANCE.fromStream(req.getRecord(), null);
ORecordInternal.setRecordSerializer(record, database.getSerializer());
Expand Down

0 comments on commit 000d828

Please sign in to comment.