From 579d4d629bca13caa35a73fbdb87404424864fbf Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Wed, 16 Aug 2023 08:54:38 +0300 Subject: [PATCH] new version of rocksdb + fs_Sync --- Cargo.lock | 4 ++-- stores-rocksdb/src/kcv_store.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8a0290f..f8b2512 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2514,7 +2514,7 @@ checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a" [[package]] name = "librocksdb-sys" version = "0.11.0+8.3.2" -source = "git+https://git.nextgraph.org/NextGraph/rust-rocksdb.git?branch=master#ed09015f8a2be858cdae9a59fb0d3352d8f315c0" +source = "git+https://git.nextgraph.org/NextGraph/rust-rocksdb.git?branch=master#d48b1d1ab9ce1f150e0c7807dcd59ae5772f5bcf" dependencies = [ "bindgen", "bzip2-sys", @@ -4009,7 +4009,7 @@ dependencies = [ [[package]] name = "rocksdb" version = "0.21.0" -source = "git+https://git.nextgraph.org/NextGraph/rust-rocksdb.git?branch=master#ed09015f8a2be858cdae9a59fb0d3352d8f315c0" +source = "git+https://git.nextgraph.org/NextGraph/rust-rocksdb.git?branch=master#d48b1d1ab9ce1f150e0c7807dcd59ae5772f5bcf" dependencies = [ "libc", "librocksdb-sys", diff --git a/stores-rocksdb/src/kcv_store.rs b/stores-rocksdb/src/kcv_store.rs index 11b30e8..398cae7 100644 --- a/stores-rocksdb/src/kcv_store.rs +++ b/stores-rocksdb/src/kcv_store.rs @@ -406,6 +406,7 @@ impl RocksdbKCVStore { /// The key is the encryption key for the data at rest. pub fn open<'a>(path: &Path, key: [u8; 32]) -> Result { let mut opts = Options::default(); + opts.set_use_fsync(true); opts.create_if_missing(true); opts.create_missing_column_families(true); let env = Env::enc_env(key).unwrap();