Commit 4c1dbb24 authored by zhangjinpeng1987's avatar zhangjinpeng1987

add set num levels api

parent d93b2067
......@@ -550,6 +550,12 @@ impl Drop for FlushOptions {
rocksdb_ffi::rocksdb_flushoptions_destroy(self.inner);
}
}
pub fn set_num_levels(&mut self, n: c_int) {
unsafe {
rocksdb_ffi::rocksdb_options_set_num_levels(self.inner, n);
}
}
}
#[cfg(test)]
......
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