summaryrefslogtreecommitdiff
path: root/src/db_options.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db_options.rs')
-rw-r--r--src/db_options.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/db_options.rs b/src/db_options.rs
index 65ea976..2ee25b3 100644
--- a/src/db_options.rs
+++ b/src/db_options.rs
@@ -2849,17 +2849,6 @@ impl Options {
}
}
- /// Specifies the file access pattern once a compaction is started.
- ///
- /// It will be applied to all input files of a compaction.
- ///
- /// Default: Normal
- pub fn set_access_hint_on_compaction_start(&mut self, pattern: AccessHint) {
- unsafe {
- ffi::rocksdb_options_set_access_hint_on_compaction_start(self.inner, pattern as c_int);
- }
- }
-
/// Enable/disable adaptive mutex, which spins in the user space before resorting to kernel.
///
/// This could reduce context switch when the mutex is not
@@ -3986,17 +3975,6 @@ pub enum DBRecoveryMode {
SkipAnyCorruptedRecord = ffi::rocksdb_skip_any_corrupted_records_recovery as isize,
}
-/// File access pattern once a compaction has started
-#[derive(Debug, Copy, Clone, PartialEq, Eq)]
-#[cfg_attr(feature = "serde1", derive(serde::Serialize, serde::Deserialize))]
-#[repr(i32)]
-pub enum AccessHint {
- None = 0,
- Normal,
- Sequential,
- WillNeed,
-}
-
pub struct FifoCompactOptions {
pub(crate) inner: *mut ffi::rocksdb_fifo_compaction_options_t,
}