Make local changes be spotted more often
This commit is contained in:
parent
c5871576ef
commit
272b742fd1
@ -802,6 +802,10 @@ public class Coll<E extends Entity<E>> extends CollAbstract<E>
|
|||||||
Entry<JsonObject, Long> remoteEntry = idToEntry.getValue();
|
Entry<JsonObject, Long> remoteEntry = idToEntry.getValue();
|
||||||
loadFromRemoteFixed(id, remoteEntry);
|
loadFromRemoteFixed(id, remoteEntry);
|
||||||
}
|
}
|
||||||
|
// They might be changes by addition of removal of fields
|
||||||
|
// upon creation. That mostly happens when loading from the
|
||||||
|
// database for the first time.
|
||||||
|
this.identifyLocalModifications(Modification.UNKNOWN_CHANGED);
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
@ -965,6 +969,7 @@ public class Coll<E extends Entity<E>> extends CollAbstract<E>
|
|||||||
// syncIdentified is probably good enough. We need not load, and when
|
// syncIdentified is probably good enough. We need not load, and when
|
||||||
// lastRaw is not present we can't identify local modifications anyway.
|
// lastRaw is not present we can't identify local modifications anyway.
|
||||||
//this.syncAll();
|
//this.syncAll();
|
||||||
|
this.identifyLocalModifications(Modification.UNKNOWN_LOG); // For the servers where lastRaw is present
|
||||||
this.syncIdentified();
|
this.syncIdentified();
|
||||||
|
|
||||||
name2instance.remove(this.getName());
|
name2instance.remove(this.getName());
|
||||||
|
Loading…
Reference in New Issue
Block a user