Commit 8bf899bb authored by zhangjinpeng1987's avatar zhangjinpeng1987

add set_iterate_upper_bound api for readoptions

parent 2f09928d
......@@ -1081,6 +1081,14 @@ impl ReadOptions {
rocksdb_ffi::rocksdb_readoptions_set_snapshot(self.inner,
snapshot.inner);
}
pub fn set_iterate_upper_bound(&mut self, key: &[u8]) {
unsafe {
rocksdb_ffi::rocksdb_readoptions_set_iterate_upper_bound(self.inner,
key.as_ptr(),
key.len() as size_t);
}
}
}
pub struct DBVector {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment