mafintosh / hyperdb

Distributed scalable database
MIT License
753 stars 75 forks source link

Mutate copy of heads in _visitGet #53

Closed andrewosh closed 6 years ago

andrewosh commented 6 years ago

Turns out that #52 was being caused by _visitGet directly mutating this._heads instead of mutating a copy. There might be a better fix for this, but copying this._heads here does appear to resolve the issue.

PR includes an additional test case.

mafintosh commented 6 years ago

Could you see if this is still relevant in master? We just merged a new major rewrite

mafintosh commented 6 years ago

(reopen if that is the case :))