Mercurial > lbo > hg > leveldb-rs
view src/lib.rs @ 94:b09acb0e365e
Fix BlockIterator: Make it storable across function calls
This is achieved by separating out the iterator state. The main problem was the internal reference to the block
that is being iterated over; using this new separation, we can store and later restore the state without having
to care about the reference to the block itself.
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Thu, 15 Sep 2016 12:48:32 +0200 |
parents | db84cb244062 |
children | cced335dd54d |
line wrap: on
line source
#![allow(dead_code)] extern crate crc; extern crate integer_encoding; extern crate libc; extern crate rand; mod block; mod blockhandle; mod block_cache; mod disk_env; mod env; mod filter; mod filter_block; mod key_types; mod log; mod memtable; mod merging_iter; mod options; mod skipmap; mod snapshot; mod table_builder; mod table_reader; mod types; mod write_batch; mod test_util; pub use types::Comparator; #[cfg(test)] mod tests {}