master
Ceri Storey 9 years ago
parent 4d4a140f9e
commit 5744f128fe
  1. 4
      src/rocksdb.rs

@ -523,7 +523,7 @@ impl DB {
Snapshot::new(self) Snapshot::new(self)
} }
fn put_opt(&self, key: &[u8], value: &[u8], writeopts: &WriteOptions) -> Result<(), String> { pub fn put_opt(&self, key: &[u8], value: &[u8], writeopts: &WriteOptions) -> Result<(), String> {
unsafe { unsafe {
let mut err: *const i8 = 0 as *const i8; let mut err: *const i8 = 0 as *const i8;
let err_ptr: *mut *const i8 = &mut err; let err_ptr: *mut *const i8 = &mut err;
@ -541,7 +541,7 @@ impl DB {
} }
} }
fn put_cf_opt(&self, pub fn put_cf_opt(&self,
cf: DBCFHandle, cf: DBCFHandle,
key: &[u8], key: &[u8],
value: &[u8], value: &[u8],

Loading…
Cancel
Save