fixed some consistency bugs. new method seems to work well, it still has problems though
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user