Skip to content

Commit

Permalink
delete set_sample_ratio (#705)
Browse files Browse the repository at this point in the history
* fix issues with set_sample_ratio

Signed-off-by: tabokie <[email protected]>

* delete instead

Signed-off-by: tabokie <[email protected]>
  • Loading branch information
tabokie authored Jul 4, 2022
1 parent faf20a0 commit fb19889
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions librocksdb_sys/crocksdb/crocksdb/c.h
Original file line number Diff line number Diff line change
Expand Up @@ -2614,9 +2614,6 @@ ctitandb_options_get_blob_cache_capacity(ctitandb_options_t* opt);
extern C_ROCKSDB_LIBRARY_API void ctitandb_options_set_discardable_ratio(
ctitandb_options_t* options, double ratio);

extern void C_ROCKSDB_LIBRARY_API
ctitandb_options_set_sample_ratio(ctitandb_options_t* options, double ratio);

extern void C_ROCKSDB_LIBRARY_API
ctitandb_options_set_blob_run_mode(ctitandb_options_t* options, int mode);

Expand Down
2 changes: 1 addition & 1 deletion librocksdb_sys/libtitan_sys/titan
Submodule titan updated 1 files
+6 −5 CMakeLists.txt
1 change: 0 additions & 1 deletion librocksdb_sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2707,7 +2707,6 @@ extern "C" {
pub fn ctitandb_options_get_blob_cache_capacity(options: *const DBTitanDBOptions) -> usize;

pub fn ctitandb_options_set_discardable_ratio(opts: *mut DBTitanDBOptions, ratio: f64);
pub fn ctitandb_options_set_sample_ratio(opts: *mut DBTitanDBOptions, ratio: f64);
pub fn ctitandb_options_set_merge_small_file_threshold(opts: *mut DBTitanDBOptions, size: u64);
pub fn ctitandb_options_set_blob_run_mode(opts: *mut DBTitanDBOptions, t: DBTitanDBBlobRunMode);

Expand Down
6 changes: 0 additions & 6 deletions src/titan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,6 @@ impl TitanDBOptions {
}
}

pub fn set_sample_ratio(&mut self, ratio: f64) {
unsafe {
crocksdb_ffi::ctitandb_options_set_sample_ratio(self.inner, ratio);
}
}

pub fn set_merge_small_file_threshold(&mut self, size: u64) {
unsafe {
crocksdb_ffi::ctitandb_options_set_merge_small_file_threshold(self.inner, size);
Expand Down

0 comments on commit fb19889

Please sign in to comment.