Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uphyperdrive/hyperdb file storage issues #215
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
joehand commentedApr 27, 2018
•
edited
Bug:
All files are getting appended to the first file imported.
Cause:
Seems like the
file.endis not getting set (not sure how that should get set).In the
_findfunction oflib/storagethe first file is always returned becausefile.start = 0andfile.end = Infinity, so the offset is always between those two.https://github.com/mafintosh/hyperdrive/blob/hyperdb-backend/lib/storage.js#L53-L62
Reproduce
You can use reproduce with this repo https://github.com/datproject/dat-node/tree/hyperdb by running
node examples/share.js. Everything will get appended toCHANGELOG.md.