Commit 435fb982 authored by Dylan Wen's avatar Dylan Wen Committed by siddontang

add set_max_manifest_file_size for Options (#33)

parent 214c3d21
......@@ -318,6 +318,12 @@ impl Options {
}
}
pub fn set_max_manifest_file_size(&mut self, size: u64) {
unsafe {
rocksdb_ffi::rocksdb_options_set_max_manifest_file_size(self.inner, size);
}
}
pub fn set_target_file_size_base(&mut self, size: u64) {
unsafe {
rocksdb_ffi::rocksdb_options_set_target_file_size_base(self.inner,
......@@ -449,3 +455,15 @@ impl WriteOptions {
}
}
}
#[cfg(test)]
mod tests {
use super::Options;
#[test]
fn test_set_max_manifest_file_size() {
let mut opts = Options::new();
let size = 20 * 1024 * 1024;
opts.set_max_manifest_file_size(size)
}
}
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