diff --git a/Cargo.lock b/Cargo.lock index fc8dc26d..e766fe46 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3390,8 +3390,8 @@ dependencies = [ [[package]] name = "rust-librocksdb-sys" -version = "0.29.0+9.7.4" -source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=e2b8853ee8839dc886e88fd751fe50ed1c27b47e#e2b8853ee8839dc886e88fd751fe50ed1c27b47e" +version = "0.30.0+9.8.4" +source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=3a9640a6b9173d24819c22a49487e31d20a2e59e#3a9640a6b9173d24819c22a49487e31d20a2e59e" dependencies = [ "bindgen", "bzip2-sys", @@ -3407,8 +3407,8 @@ dependencies = [ [[package]] name = "rust-rocksdb" -version = "0.33.0" -source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=e2b8853ee8839dc886e88fd751fe50ed1c27b47e#e2b8853ee8839dc886e88fd751fe50ed1c27b47e" +version = "0.34.0" +source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=3a9640a6b9173d24819c22a49487e31d20a2e59e#3a9640a6b9173d24819c22a49487e31d20a2e59e" dependencies = [ "libc", "rust-librocksdb-sys", diff --git a/deps/rust-rocksdb/Cargo.toml b/deps/rust-rocksdb/Cargo.toml index c6c3fea5..b6895ad3 100644 --- a/deps/rust-rocksdb/Cargo.toml +++ b/deps/rust-rocksdb/Cargo.toml @@ -27,7 +27,7 @@ malloc-usable-size = ["rust-rocksdb/malloc-usable-size"] [dependencies.rust-rocksdb] git = "https://github.com/girlbossceo/rust-rocksdb-zaidoon1" -rev = "e2b8853ee8839dc886e88fd751fe50ed1c27b47e" +rev = "3a9640a6b9173d24819c22a49487e31d20a2e59e" #branch = "master" default-features = false diff --git a/flake.lock b/flake.lock index 7740e925..6049fded 100644 --- a/flake.lock +++ b/flake.lock @@ -922,16 +922,16 @@ "rocksdb": { "flake": false, "locked": { - "lastModified": 1731690620, - "narHash": "sha256-Xd4TJYqPERMJLXaGa6r6Ny1Wlw8Uy5Cyf/8q7nS58QM=", + "lastModified": 1733704887, + "narHash": "sha256-4ijNmXACyTJWKRcTdlgObdbOVm2oN3Zefg55/4UPIL0=", "owner": "girlbossceo", "repo": "rocksdb", - "rev": "292446aa2bc41699204d817a1e4b091679a886eb", + "rev": "9c656e58c9f969aea28f25b22bc52ea03109677a", "type": "github" }, "original": { "owner": "girlbossceo", - "ref": "v9.7.4", + "ref": "v9.8.4", "repo": "rocksdb", "type": "github" } diff --git a/flake.nix b/flake.nix index 281052a8..4eb72731 100644 --- a/flake.nix +++ b/flake.nix @@ -9,7 +9,7 @@ flake-utils.url = "github:numtide/flake-utils?ref=main"; nix-filter.url = "github:numtide/nix-filter?ref=main"; 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; }; }; diff --git a/src/database/opts.rs b/src/database/opts.rs index d0ae618c..b0b33927 100644 --- a/src/database/opts.rs +++ b/src/database/opts.rs @@ -95,6 +95,12 @@ pub(crate) fn db_options(config: &Config, env: &mut Env, row_cache: &Cache, col_ 4_u8..=u8::MAX => unimplemented!(), }); + // + // "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_env(env);