Commit 75d47ab7 authored by zhangjinpeng1987's avatar zhangjinpeng1987 Committed by GitHub

fix redefinition error (#48)

parent a95dd722
...@@ -1507,10 +1507,6 @@ void crocksdb_options_set_wal_bytes_per_sync(crocksdb_options_t *opt, uint64_t v ...@@ -1507,10 +1507,6 @@ void crocksdb_options_set_wal_bytes_per_sync(crocksdb_options_t *opt, uint64_t v
opt->rep.wal_bytes_per_sync = v; opt->rep.wal_bytes_per_sync = v;
} }
void crocksdb_options_set_bytes_per_sync(crocksdb_options_t *opt, uint64_t v) {
opt->rep.bytes_per_sync = v;
}
size_t crocksdb_options_get_block_cache_usage(crocksdb_options_t *opt) { size_t crocksdb_options_get_block_cache_usage(crocksdb_options_t *opt) {
if (opt && opt->rep.table_factory != nullptr) { if (opt && opt->rep.table_factory != nullptr) {
void* table_opt = opt->rep.table_factory->GetOptions(); void* table_opt = opt->rep.table_factory->GetOptions();
......
...@@ -788,8 +788,6 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_options_set_max_subcompactions( ...@@ -788,8 +788,6 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_options_set_max_subcompactions(
crocksdb_options_t*, size_t); crocksdb_options_t*, size_t);
extern C_ROCKSDB_LIBRARY_API void crocksdb_options_set_wal_bytes_per_sync( extern C_ROCKSDB_LIBRARY_API void crocksdb_options_set_wal_bytes_per_sync(
crocksdb_options_t*, uint64_t); crocksdb_options_t*, uint64_t);
extern C_ROCKSDB_LIBRARY_API void crocksdb_options_set_bytes_per_sync(
crocksdb_options_t*, uint64_t);
enum { enum {
crocksdb_tolerate_corrupted_tail_records_recovery = 0, crocksdb_tolerate_corrupted_tail_records_recovery = 0,
......
...@@ -560,12 +560,6 @@ impl Options { ...@@ -560,12 +560,6 @@ impl Options {
} }
} }
pub fn set_bytes_per_sync(&mut self, n: u64) {
unsafe {
crocksdb_ffi::crocksdb_options_set_bytes_per_sync(self.inner, n);
}
}
pub fn set_disable_auto_compactions(&mut self, disable: bool) { pub fn set_disable_auto_compactions(&mut self, disable: bool) {
unsafe { unsafe {
if disable { if disable {
......
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