Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to RocksDB 8.10.0 #852

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion librocksdb-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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>"]
Expand Down
8 changes: 4 additions & 4 deletions librocksdb-sys/build_version.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_ = {};
Expand Down
2 changes: 1 addition & 1 deletion librocksdb-sys/rocksdb
Submodule rocksdb updated 216 files
11 changes: 9 additions & 2 deletions src/db_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down