Closed stuarts closed 11 years ago
Nice! This one saved my day. Thanks!
+1
ditto +1 thanks!
Thanks @stuarts !
@creationix it should be nice to update your npm repository with this pull request :wink:
Published as nstore@0.5.2! Thanks for the fix. I had high hopes for nStore and then never had time to fix all the data corruption bugs. Maybe it will become useful yet.
Your welcome! Thanks for the great project, I bet it has saved a bunch of time for people over the years who would otherwise have rolled their own solution. It is in that sweet spot of simplicity and feature set.
On Tue, Apr 2, 2013 at 6:28 AM, Tim Caswell notifications@github.comwrote:
Published as nstore@0.5.2! Thanks for the fix. I had high hopes for nStore and then never had time to fix all the data corruption bugs. Maybe it will become useful yet.
— Reply to this email directly or view it on GitHubhttps://github.com/creationix/nstore/pull/30#issuecomment-15774767 .
The document was being deleted off of the index on the checkQueue update.
But the iterator wasn't being nulled so
if(value !== undefined)
wasn't preventing the document's index from being re-set onself.index
and subsequent query.all's were failing.I just added a
value = undefined
to the delete logic.