fixed some consistency bugs. new method seems to work well, it still has problems though

This commit is contained in:
Kevin Jahns
2015-09-29 01:01:04 +02:00
parent acf8d37616
commit 638c575dfc
4 changed files with 9 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ Y.Memory = (function () {
}
* checkDeleteStoreForState (state) {
var n = this.ds.findNodeWithUpperBound([state.user, state.clock])
if (n !== null && n.val.id[0] === state.user) {
if (n !== null && n.val.id[0] === state.user && n.val.gc) {
state.clock = Math.max(state.clock, n.val.id[1] + n.val.len)
}
}