The do_fold() function in eleveldb.erl should likely perform a prefetch_stop operation to cleanly handle a pending but undesired prefetch. The iterator_close() operation should already be performing the cleanup, but do_fold() would provide a good example to those that roll their own folds.
The do_fold() function in eleveldb.erl should likely perform a prefetch_stop operation to cleanly handle a pending but undesired prefetch. The iterator_close() operation should already be performing the cleanup, but do_fold() would provide a good example to those that roll their own folds.