Closed AlexeyRaga closed 8 years ago
As far as I can see from some point put
starts returning a random unreadable string in its errptr
.
But I have no idea of why it happens and why the database gets corrupted after when it happens.
You will need to link against the threaded runtime if you want allow native leveldb to call back into haskell.
This has been reported before (#27), so I'm closing this one as duplicate. Feel free to reopen if you have a better solution.
Pretty much any of the examples can fail when multiple sequential puts are performed (at least on Mac OS X). For example, adding this fragment to the
comparator
example and running the compiled code 3-5 times reproduces this issue:The full example code then would be:
And this is the response I get from running this code (as you can see it star failing after couple of runs):