summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzaidoon <zaidoon@cloudflare.com>2024-01-10 16:45:08 -0500
committerzaidoon <zaidoon@cloudflare.com>2024-01-10 16:54:13 -0500
commit734a9fad808bf369e858eabc725b8e823641da1f (patch)
tree11604f0459b91a4bcc28514c115fe9ad40033894
parent66f04df013b6e6bd42b5a8c353406e09a7c7da2a (diff)
Update to RocksDB 8.10.0
-rw-r--r--Cargo.toml2
-rw-r--r--librocksdb-sys/Cargo.toml2
-rw-r--r--librocksdb-sys/build_version.cc8
m---------librocksdb-sys/rocksdb0
-rw-r--r--src/db_options.rs11
5 files changed, 15 insertions, 8 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 2a5d733..df23601 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -36,7 +36,7 @@ serde1 = ["serde"]
[dependencies]
libc = "0.2"
-librocksdb-sys = { path = "librocksdb-sys", version = "0.15.0" }
+librocksdb-sys = { path = "librocksdb-sys", version = "0.16.0" }
serde = { version = "1", features = [ "derive" ], optional = true }
[dev-dependencies]
diff --git a/librocksdb-sys/Cargo.toml b/librocksdb-sys/Cargo.toml
index 33394bf..e888d28 100644
--- a/librocksdb-sys/Cargo.toml
+++ b/librocksdb-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "librocksdb-sys"
-version = "0.15.0+8.9.1"
+version = "0.16.0+8.10.0"
edition = "2018"
rust-version = "1.66.0"
authors = ["Karl Hobley <karlhobley10@gmail.com>", "Arkadiy Paronyan <arkadiy@ethcore.io>"]
diff --git a/librocksdb-sys/build_version.cc b/librocksdb-sys/build_version.cc
index 9c57f17..f13f2a0 100644
--- a/librocksdb-sys/build_version.cc
+++ b/librocksdb-sys/build_version.cc
@@ -8,17 +8,17 @@
// The build script may replace these values with real values based
// on whether or not GIT is available and the platform settings
-static const std::string rocksdb_build_git_sha = "49ce8a1064dd1ad89117899839bf136365e49e79";
-static const std::string rocksdb_build_git_tag = "rocksdb_build_git_tag:v8.9.1";
+static const std::string rocksdb_build_git_sha = "54d628602706c0c718cf81f87202e0b8f6615faf";
+static const std::string rocksdb_build_git_tag = "rocksdb_build_git_tag:v8.10.0";
#define HAS_GIT_CHANGES 0
#if HAS_GIT_CHANGES == 0
// If HAS_GIT_CHANGES is 0, the GIT date is used.
// Use the time the branch/tag was last modified
-static const std::string rocksdb_build_date = "rocksdb_build_date:2023-12-08 12:44:09";
+static const std::string rocksdb_build_date = "rocksdb_build_date:2023-12-15 13:01:14";
#else
// If HAS_GIT_CHANGES is > 0, the branch/tag has modifications.
// Use the time the build was created.
-static const std::string rocksdb_build_date = "rocksdb_build_date:2023-09-01 20:58:39";
+static const std::string rocksdb_build_date = "rocksdb_build_date:2023-12-15 13:01:14";
#endif
std::unordered_map<std::string, ROCKSDB_NAMESPACE::RegistrarFunc> ROCKSDB_NAMESPACE::ObjectRegistry::builtins_ = {};
diff --git a/librocksdb-sys/rocksdb b/librocksdb-sys/rocksdb
-Subproject 49ce8a1064dd1ad89117899839bf136365e49e7
+Subproject 54d628602706c0c718cf81f87202e0b8f6615fa
diff --git a/src/db_options.rs b/src/db_options.rs
index 2db5bcb..e4f7057 100644
--- a/src/db_options.rs
+++ b/src/db_options.rs
@@ -3589,9 +3589,16 @@ impl ReadOptions {
}
}
- /// Automatically trim readahead size when iterating with an upper bound.
+ /// If auto_readahead_size is set to true, it will auto tune the readahead_size
+ /// during scans internally.
+ /// For this feature to be enabled, iterate_upper_bound must also be specified.
///
- /// Default: `false`
+ /// NOTE: - Recommended for forward Scans only.
+ /// - If there is a backward scans, this option will be
+ /// disabled internally and won't be enabled again if the forward scan
+ /// is issued again.
+ ///
+ /// Default: true
pub fn set_auto_readahead_size(&mut self, v: bool) {
unsafe {
ffi::rocksdb_readoptions_set_auto_readahead_size(self.inner, c_uchar::from(v));