basho / eleveldb

Erlang LevelDB API
262 stars 177 forks source link

Mv iter valid #199

Closed matthewvon closed 8 years ago

matthewvon commented 8 years ago

Isolate leveldb iterator Valid() state. This allows the iterator to be destroyed on background thread, releasing leveldb snapshot. The foreground thread is then able to read the Valid() state at its leisure.