todomvc-swarm icon indicating copy to clipboard operation
todomvc-swarm copied to clipboard

move to leveldb storage

Open vmakhaev opened this issue 11 years ago • 4 comments

Using leveldb on client shows race condition that should be investigated

vmakhaev avatar Oct 19 '14 08:10 vmakhaev

(1) the race is because of the LevelStorage.prototype.isRoot flag. Server-side storage needs "true", client-side cache needs "false". isRoot means "this storage is the root of the replica tree".

gritzko avatar Oct 19 '14 17:10 gritzko

(2) Does it work without the timeout?

gritzko avatar Oct 19 '14 17:10 gritzko

  1. Ok, I will test it
  2. It works, but as far as it thinks that list is empty, it adds new empty item each time you clear client's storage and reload app

vmakhaev avatar Oct 19 '14 17:10 vmakhaev

isRoot did not solve the problem. Maybe problem in initialization of Vector.

vmakhaev avatar Oct 19 '14 19:10 vmakhaev