Commit f57f6731 authored by Huachao Huang's avatar Huachao Huang Committed by zhangjinpeng1987

Fix compact files (#192)

parent 5d278e1f
...@@ -1389,7 +1389,11 @@ impl DB { ...@@ -1389,7 +1389,11 @@ impl DB {
output_level: i32, output_level: i32,
) -> Result<(), String> { ) -> Result<(), String> {
unsafe { unsafe {
let input_file_names: Vec<_> = input_files.iter().map(|f| f.as_ptr()).collect(); let input_file_cstrs: Vec<_> = input_files
.iter()
.map(|s| CString::new(s.as_bytes()).unwrap())
.collect();
let input_file_names: Vec<_> = input_file_cstrs.iter().map(|s| s.as_ptr()).collect();
ffi_try!(crocksdb_compact_files_cf( ffi_try!(crocksdb_compact_files_cf(
self.inner, self.inner,
cf.inner, cf.inner,
......
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