mafintosh / hyperdb

Distributed scalable database
MIT License
752 stars 75 forks source link

batch needs to normlize key #141

Closed doraemondrian closed 5 years ago

doraemondrian commented 5 years ago

batching doesn't normalize the key before calling put, and this leads to isPrefix() to return false later, resulting in null results for queries.

doraemondrian commented 5 years ago

@mafintosh could you take a quick look at this? i'm trying to use batch in my project but without this fix it's not working. Also I'm sure this PR is either a no-brainer or otherwise I'm missing something and i can go back and fix it.

mafintosh commented 5 years ago

Nice catch. Sorry was travel week so been offline.

mafintosh commented 5 years ago

Out in latest

doraemondrian commented 5 years ago

thanks!