Skip to content

Commit

Permalink
Merge pull request #852 from zaidoon1/zaidoon/rocksdb-8.10
Browse files Browse the repository at this point in the history
Update to RocksDB 8.10.0
  • Loading branch information
zaidoon1 committed Jan 12, 2024
2 parents 66f04df + 734a9fa commit 8fccdf5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
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

0 comments on commit 8fccdf5

Please sign in to comment.