You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`skipping ${op.action} op: op timeserial${opOriginTimeserial.toString()} <= site timeserial${this._siteTimeserials[opSiteCode]?.toString()}; objectId=${this.getObjectId()}`,
178
+
`skipping ${op.action} op: op serial${opSerial.toString()} <= site serial${this._siteTimeserials[opSiteCode]?.toString()}; objectId=${this.getObjectId()}`,
179
179
);
180
180
return;
181
181
}
182
-
// should update stored site timeserial immediately. doesn't matter if we successfully apply the op,
182
+
// should update stored site serial immediately. doesn't matter if we successfully apply the op,
183
183
// as it's important to mark that the op was processed by the object
`skipping ${op.action} op: op timeserial${opOriginTimeserial.toString()} <= site timeserial${this._siteTimeserials[opSiteCode]?.toString()}; objectId=${this.getObjectId()}`,
381
+
`skipping ${op.action} op: op serial${opSerial.toString()} <= site serial${this._siteTimeserials[opSiteCode]?.toString()}; objectId=${this.getObjectId()}`,
382
382
);
383
383
return;
384
384
}
385
-
// should update stored site timeserial immediately. doesn't matter if we successfully apply the op,
385
+
// should update stored site serial immediately. doesn't matter if we successfully apply the op,
386
386
// as it's important to mark that the op was processed by the object
// the operation's serial <= the entry's serial, ignore the operation.
658
658
this._client.Logger.logAction(
659
659
this._client.logger,
660
660
this._client.Logger.LOG_MICRO,
661
661
'LiveMap._applyMapSet()',
662
-
`skipping update for key="${op.key}": op timeserial${opOriginTimeserial?.toString()} <= entry timeserial${existingEntry.timeserial?.toString()}; objectId=${this.getObjectId()}`,
662
+
`skipping update for key="${op.key}": op serial${opSerial?.toString()} <= entry serial${existingEntry.timeserial?.toString()}; objectId=${this.getObjectId()}`,
// the operation's serial <= the entry's serial, ignore the operation.
708
708
this._client.Logger.logAction(
709
709
this._client.logger,
710
710
this._client.Logger.LOG_MICRO,
711
711
'LiveMap._applyMapRemove()',
712
-
`skipping remove for key="${op.key}": op timeserial${opOriginTimeserial?.toString()} <= entry timeserial${existingEntry.timeserial?.toString()}; objectId=${this.getObjectId()}`,
712
+
`skipping remove for key="${op.key}": op serial${opSerial?.toString()} <= entry serial${existingEntry.timeserial?.toString()}; objectId=${this.getObjectId()}`,
/** A vector of origin timeserials keyed by site code of the last operation that was applied to this object. */
121
+
/** A map of serials keyed by a {@link ObjectMessage.siteCode}, representing the last operations applied to this object */
122
122
siteTimeserials: Record<string,string>;
123
123
/** True if the object has been tombstoned. */
124
124
tombstone: boolean;
@@ -162,9 +162,9 @@ export class ObjectMessage {
162
162
* Mutually exclusive with the `operation` field. This field is only set on object messages if the `action` field of the `ProtocolMessage` encapsulating it is `OBJECT_SYNC`.
163
163
*/
164
164
object?: ObjectState;
165
-
/** Timeserial format. Contains the origin timeserial for this object message. */
165
+
/** An opaque string that uniquely identifies this object message. */
166
166
serial?: string;
167
-
/** Site code corresponding to this message's timeserial */
167
+
/** An opaque string used as a key to update the map of serial values on an object. */
0 commit comments