Skip to content

Commit 37f7ab0

Browse files
committed
upgrade to RocksDB 9.6.1
1 parent 5dd649f commit 37f7ab0

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ zstd-static-linking-only = ["rust-librocksdb-sys/zstd-static-linking-only"]
3737

3838
[dependencies]
3939
libc = "0.2"
40-
rust-librocksdb-sys = { path = "librocksdb-sys", version = "0.25.0" }
40+
rust-librocksdb-sys = { path = "librocksdb-sys", version = "0.26.0" }
4141
serde = { version = "1", features = ["derive"], optional = true }
4242

4343
[dev-dependencies]

librocksdb-sys/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rust-librocksdb-sys"
3-
version = "0.25.0+9.5.2"
3+
version = "0.26.0+9.6.1"
44
edition = "2021"
55
rust-version = "1.75.0"
66
authors = [
@@ -47,7 +47,7 @@ libc = "0.2"
4747
tikv-jemalloc-sys = { version = "0.6", features = [
4848
"unprefixed_malloc_on_supported_platforms",
4949
], optional = true }
50-
lz4-sys = { version = "1.10.0", optional = true }
50+
lz4-sys = { version = "1.10", optional = true }
5151
zstd-sys = { version = "2.0", features = ["zdict_builder", "experimental"], optional = true }
5252
libz-sys = { version = "1.1", default-features = false, optional = true }
5353
bzip2-sys = { version = "0.1", default-features = false, optional = true }

librocksdb-sys/build_version.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88

99
// The build script may replace these values with real values based
1010
// on whether or not GIT is available and the platform settings
11-
static const std::string rocksdb_build_git_sha = "a7e70f95aae5eb7adf61ae6b87e391a8f5dfe3ff";
12-
static const std::string rocksdb_build_git_tag = "rocksdb_build_git_tag:v9.5.2";
11+
static const std::string rocksdb_build_git_sha = "13d5230e5da650cf93e6dccb389c82d316d355c6";
12+
static const std::string rocksdb_build_git_tag = "rocksdb_build_git_tag:v9.6.1";
1313
#define HAS_GIT_CHANGES 0
1414
#if HAS_GIT_CHANGES == 0
1515
// If HAS_GIT_CHANGES is 0, the GIT date is used.
1616
// Use the time the branch/tag was last modified
17-
static const std::string rocksdb_build_date = "rocksdb_build_date:2024-08-13 12:59:14";
17+
static const std::string rocksdb_build_date = "rocksdb_build_date:2024-08-27 13:39:35";
1818
#else
1919
// If HAS_GIT_CHANGES is > 0, the branch/tag has modifications.
2020
// Use the time the build was created.
21-
static const std::string rocksdb_build_date = "rocksdb_build_date:2024-08-13 12:59:14";
21+
static const std::string rocksdb_build_date = "rocksdb_build_date:2024-08-27 13:39:35";
2222
#endif
2323

2424
std::unordered_map<std::string, ROCKSDB_NAMESPACE::RegistrarFunc> ROCKSDB_NAMESPACE::ObjectRegistry::builtins_ = {};

librocksdb-sys/rocksdb

Submodule rocksdb updated 114 files

src/statistics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,6 @@ fn sanity_checks() {
169169
assert_eq!(want, Ticker::BlockCacheIndexMiss.to_string());
170170

171171
// assert enum lengths
172-
assert_eq!(Ticker::iter().count(), 211 /* TICKER_ENUM_MAX */);
172+
assert_eq!(Ticker::iter().count(), 214 /* TICKER_ENUM_MAX */);
173173
assert_eq!(Histogram::iter().count(), 62 /* HISTOGRAM_ENUM_MAX */);
174174
}

src/statistics_enum_ticker.rs

+3
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,8 @@ iterable_named_enum! {
216216
PrefetchBytes("rocksdb.prefetch.bytes"),
217217
PrefetchBytesUseful("rocksdb.prefetch.bytes.useful"),
218218
PrefetchHits("rocksdb.prefetch.hits"),
219+
SstFooterCorruptionCount("rocksdb.footer.corruption.count"),
220+
FileReadCorruptionRetryCount("rocksdb.file.read.corruption.retry.count"),
221+
FileReadCorruptionRetrySuccessCount("rocksdb.file.read.corruption.retry.success.count"),
219222
}
220223
}

0 commit comments

Comments
 (0)