basho / eleveldb

Erlang LevelDB API
262 stars 177 forks source link

add prefetch_stop to do_fold() [JIRA: RIAK-2646] #198

Open matthewvon opened 8 years ago

matthewvon commented 8 years ago

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.