bump rocksdb to v9.8.4, enable track_and_verify_wals_in_manifest by default
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
ab4a283870
commit
faf48405aa
5 changed files with 16 additions and 10 deletions
8
Cargo.lock
generated
8
Cargo.lock
generated
|
@ -3390,8 +3390,8 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rust-librocksdb-sys"
|
name = "rust-librocksdb-sys"
|
||||||
version = "0.29.0+9.7.4"
|
version = "0.30.0+9.8.4"
|
||||||
source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=e2b8853ee8839dc886e88fd751fe50ed1c27b47e#e2b8853ee8839dc886e88fd751fe50ed1c27b47e"
|
source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=3a9640a6b9173d24819c22a49487e31d20a2e59e#3a9640a6b9173d24819c22a49487e31d20a2e59e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bindgen",
|
"bindgen",
|
||||||
"bzip2-sys",
|
"bzip2-sys",
|
||||||
|
@ -3407,8 +3407,8 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rust-rocksdb"
|
name = "rust-rocksdb"
|
||||||
version = "0.33.0"
|
version = "0.34.0"
|
||||||
source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=e2b8853ee8839dc886e88fd751fe50ed1c27b47e#e2b8853ee8839dc886e88fd751fe50ed1c27b47e"
|
source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=3a9640a6b9173d24819c22a49487e31d20a2e59e#3a9640a6b9173d24819c22a49487e31d20a2e59e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"rust-librocksdb-sys",
|
"rust-librocksdb-sys",
|
||||||
|
|
2
deps/rust-rocksdb/Cargo.toml
vendored
2
deps/rust-rocksdb/Cargo.toml
vendored
|
@ -27,7 +27,7 @@ malloc-usable-size = ["rust-rocksdb/malloc-usable-size"]
|
||||||
|
|
||||||
[dependencies.rust-rocksdb]
|
[dependencies.rust-rocksdb]
|
||||||
git = "https://github.com/girlbossceo/rust-rocksdb-zaidoon1"
|
git = "https://github.com/girlbossceo/rust-rocksdb-zaidoon1"
|
||||||
rev = "e2b8853ee8839dc886e88fd751fe50ed1c27b47e"
|
rev = "3a9640a6b9173d24819c22a49487e31d20a2e59e"
|
||||||
#branch = "master"
|
#branch = "master"
|
||||||
default-features = false
|
default-features = false
|
||||||
|
|
||||||
|
|
8
flake.lock
generated
8
flake.lock
generated
|
@ -922,16 +922,16 @@
|
||||||
"rocksdb": {
|
"rocksdb": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731690620,
|
"lastModified": 1733704887,
|
||||||
"narHash": "sha256-Xd4TJYqPERMJLXaGa6r6Ny1Wlw8Uy5Cyf/8q7nS58QM=",
|
"narHash": "sha256-4ijNmXACyTJWKRcTdlgObdbOVm2oN3Zefg55/4UPIL0=",
|
||||||
"owner": "girlbossceo",
|
"owner": "girlbossceo",
|
||||||
"repo": "rocksdb",
|
"repo": "rocksdb",
|
||||||
"rev": "292446aa2bc41699204d817a1e4b091679a886eb",
|
"rev": "9c656e58c9f969aea28f25b22bc52ea03109677a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "girlbossceo",
|
"owner": "girlbossceo",
|
||||||
"ref": "v9.7.4",
|
"ref": "v9.8.4",
|
||||||
"repo": "rocksdb",
|
"repo": "rocksdb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
flake-utils.url = "github:numtide/flake-utils?ref=main";
|
flake-utils.url = "github:numtide/flake-utils?ref=main";
|
||||||
nix-filter.url = "github:numtide/nix-filter?ref=main";
|
nix-filter.url = "github:numtide/nix-filter?ref=main";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixpkgs-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixpkgs-unstable";
|
||||||
rocksdb = { url = "github:girlbossceo/rocksdb?ref=v9.7.4"; flake = false; };
|
rocksdb = { url = "github:girlbossceo/rocksdb?ref=v9.8.4"; flake = false; };
|
||||||
liburing = { url = "github:axboe/liburing?ref=master"; flake = false; };
|
liburing = { url = "github:axboe/liburing?ref=master"; flake = false; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,12 @@ pub(crate) fn db_options(config: &Config, env: &mut Env, row_cache: &Cache, col_
|
||||||
4_u8..=u8::MAX => unimplemented!(),
|
4_u8..=u8::MAX => unimplemented!(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// <https://github.com/facebook/rocksdb/wiki/Track-WAL-in-MANIFEST>
|
||||||
|
// "We recommend to set track_and_verify_wals_in_manifest to true for
|
||||||
|
// production, it has been enabled in production for the entire database cluster
|
||||||
|
// serving the social graph for all Meta apps."
|
||||||
|
opts.set_track_and_verify_wals_in_manifest(true);
|
||||||
|
|
||||||
opts.set_paranoid_checks(config.rocksdb_paranoid_file_checks);
|
opts.set_paranoid_checks(config.rocksdb_paranoid_file_checks);
|
||||||
|
|
||||||
opts.set_env(env);
|
opts.set_env(env);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue