Comments
This commit is contained in:
parent
820b982f23
commit
cf1e7dce8a
|
@ -290,6 +290,8 @@ function pickTopPropertyRecord(property) {
|
||||||
|
|
||||||
//equal timestamps
|
//equal timestamps
|
||||||
//Use machine id as tie-breaker
|
//Use machine id as tie-breaker
|
||||||
|
//These essentially have to be different, otherwise we would only have one record
|
||||||
|
// (because records with the same machine Id are digested into the same property)
|
||||||
return predictableStringComparison(a.machineId, b.machineId);
|
return predictableStringComparison(a.machineId, b.machineId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -663,3 +663,6 @@ describe("records anchored to each other", () => {
|
||||||
expect(readPropertyValue(prop)).toBe(42);
|
expect(readPropertyValue(prop)).toBe(42);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//Record anchored to itself? again "should never happen" but what do we do if it does?
|
Loading…
Reference in New Issue