Skip to content

Commit d6f28e7

Browse files
author
yangweijian
committed
wip: update version to follow up upstream
1 parent e06de2f commit d6f28e7

File tree

6 files changed

+5
-12
lines changed

6 files changed

+5
-12
lines changed

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[submodule "librocksdb-sys/rocksdb"]
55
path = librocksdb-sys/rocksdb
66
url = https://github.com/haizhi-tech/rocksdb.git
7-
branch = v8.1.1-hz
7+
branch = v9.9.3-hz
88
[submodule "librocksdb-sys/lz4"]
99
path = librocksdb-sys/lz4
1010
url = https://github.com/lz4/lz4.git

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "haizhi-rocksdb"
33
description = "Rust wrapper for Facebook's RocksDB embeddable database"
4-
version = "0.2.8"
4+
version = "0.2.10"
55
edition = "2021"
66
rust-version = "1.71.1"
77
authors = ["Tyler Neely <[email protected]>", "David Greenberg <[email protected]>"]

librocksdb-sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "haizhi-librocksdb-sys"
3-
version = "0.2.7+9.9.3"
3+
version = "0.2.10+9.9.3"
44
edition = "2021"
55
rust-version = "1.71.1"
66
authors = [

src/db_options.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -1138,12 +1138,6 @@ impl Options {
11381138
}
11391139
}
11401140

1141-
pub fn set_periodic_compaction_seconds(&mut self, sec: u64) {
1142-
unsafe {
1143-
ffi::rocksdb_options_set_periodic_compaction_seconds(self.inner, sec);
1144-
}
1145-
}
1146-
11471141
/// If true, the database will be created if it is missing.
11481142
///
11491143
/// Default: `false`
@@ -4770,7 +4764,7 @@ mod tests {
47704764
#[test]
47714765
fn test_set_write_buffer_manager() {
47724766
let mut opts = Options::default();
4773-
let lrucache = Cache::new_lru_cache(100);
4767+
let lrucache = Cache::new_lru_cache(100).unwrap();
47744768
let write_buffer_manager =
47754769
WriteBufferManager::new_write_buffer_manager_with_cache(100, false, lrucache);
47764770
assert_eq!(write_buffer_manager.get_buffer_size(), 100);

tests/util/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use std::{
88
};
99

1010
use rocksdb::{Error, Options, DB};
11-
use std::path::{Path, PathBuf};
1211

1312
/// Temporary database path which calls DB::Destroy when DBPath is dropped.
1413
pub struct DBPath {

0 commit comments

Comments
 (0)