From f2117d3c2c9111e5c617850af2a6989bb639e656 Mon Sep 17 00:00:00 2001 From: Heyang Zhou Date: Mon, 13 Feb 2023 22:35:35 +0800 Subject: [PATCH] v0.3.0 (#107) --- Cargo.lock | 8 ++++---- mvclient/Cargo.toml | 2 +- mvclient/src/lib.rs | 8 ++++---- mvfs/Cargo.toml | 4 ++-- mvsqlite-fuse/Cargo.toml | 4 ++-- mvsqlite/Cargo.toml | 6 +++--- mvstore-stress/Cargo.toml | 2 +- mvstore/Cargo.toml | 2 +- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c3f6567..014497d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1201,7 +1201,7 @@ dependencies = [ [[package]] name = "mvclient" -version = "0.3.0-beta.1" +version = "0.3.0" dependencies = [ "anyhow", "blake3", @@ -1226,7 +1226,7 @@ dependencies = [ [[package]] name = "mvfs" -version = "0.3.0-beta.1" +version = "0.3.0" dependencies = [ "anyhow", "bytes", @@ -1243,7 +1243,7 @@ dependencies = [ [[package]] name = "mvsqlite" -version = "0.3.0-beta.1" +version = "0.3.0" dependencies = [ "anyhow", "backtrace", @@ -1292,7 +1292,7 @@ dependencies = [ [[package]] name = "mvstore" -version = "0.3.0-beta.1" +version = "0.3.0" dependencies = [ "anyhow", "blake3", diff --git a/mvclient/Cargo.toml b/mvclient/Cargo.toml index 89703d3..527f6c6 100644 --- a/mvclient/Cargo.toml +++ b/mvclient/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mvclient" -version = "0.3.0-beta.1" +version = "0.3.0" edition = "2021" license = "Apache-2.0" authors = ["Heyang Zhou "] diff --git a/mvclient/src/lib.rs b/mvclient/src/lib.rs index 15be6aa..39ea5f5 100644 --- a/mvclient/src/lib.rs +++ b/mvclient/src/lib.rs @@ -430,8 +430,8 @@ impl Transaction { } pub async fn read_many_nomark(&self, page_id_list: &[u32]) -> Result>> { - // wait for async completion - self.async_ctx.background_completion.write().await; + // Read-your-writes: wait for completion of asynchronous writes. + let _ = self.async_ctx.background_completion.write().await; self.check_async_error()?; let mut raw_request: Vec = Vec::new(); @@ -631,8 +631,8 @@ impl Transaction { metadata: Option, fast_writes: &HashMap, ) -> Result> { - // wait for async completion - self.async_ctx.background_completion.write().await; + // Wait for all pages in the page buffer to be flushed. + let _ = self.async_ctx.background_completion.write().await; self.check_async_error()?; if self.page_buffer.is_empty() && metadata.is_none() && fast_writes.is_empty() { diff --git a/mvfs/Cargo.toml b/mvfs/Cargo.toml index 1f129e5..6c4ba72 100644 --- a/mvfs/Cargo.toml +++ b/mvfs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mvfs" -version = "0.3.0-beta.1" +version = "0.3.0" edition = "2021" license = "Apache-2.0" authors = ["Heyang Zhou "] @@ -14,7 +14,7 @@ crate-type = ["rlib", "staticlib"] anyhow = "1" thiserror = "1" tokio = { version = "1", features = ["full"] } -mvclient = { path = "../mvclient" } +mvclient = { path = "../mvclient", version = "0.3.0" } tracing = "0.1" serde = { version = "1", features = ["derive"] } serde_json = "1" diff --git a/mvsqlite-fuse/Cargo.toml b/mvsqlite-fuse/Cargo.toml index 99c4798..879a50e 100644 --- a/mvsqlite-fuse/Cargo.toml +++ b/mvsqlite-fuse/Cargo.toml @@ -11,7 +11,7 @@ thiserror = "1" tokio = { version = "1", features = ["full"] } log = "0.4" rand = "0.8.5" -mvclient = { path = "../mvclient" } +mvclient = { path = "../mvclient", version = "0.3.0" } tracing = "0.1" tracing-subscriber = { version = "0.3.16", features = ["env-filter", "fmt", "tracing-log", "json"] } libc = "0.2" @@ -20,7 +20,7 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" lazy_static = "1.4.0" reqwest = { version = "0.11.11", default-features = false, features = ["rustls-tls"] } -mvfs = { path = "../mvfs" } +mvfs = { path = "../mvfs", version = "0.3.0" } fuser = "0.11.0" structopt = "0.3.26" indexmap = "1.9.1" diff --git a/mvsqlite/Cargo.toml b/mvsqlite/Cargo.toml index e32f298..ab18954 100644 --- a/mvsqlite/Cargo.toml +++ b/mvsqlite/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mvsqlite" -version = "0.3.0-beta.1" +version = "0.3.0" edition = "2021" license = "Apache-2.0" authors = ["Heyang Zhou "] @@ -17,7 +17,7 @@ tokio = { version = "1", features = ["full"] } log = "0.4" rand = "0.8.5" stackful = "0.1.5" -mvclient = { path = "../mvclient" } +mvclient = { path = "../mvclient", version = "0.3.0" } tracing = "0.1" ctor = "0.1.22" tracing-subscriber = { version = "0.3.16", features = ["env-filter", "fmt", "json"], optional = true } @@ -27,7 +27,7 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" lazy_static = "1.4.0" reqwest = { version = "0.11.11", default-features = false } -mvfs = { path = "../mvfs" } +mvfs = { path = "../mvfs", version = "0.3.0" } [features] default = ["loadext", "syscall", "rustls-tls", "global-init"] diff --git a/mvstore-stress/Cargo.toml b/mvstore-stress/Cargo.toml index 2103008..f70551c 100644 --- a/mvstore-stress/Cargo.toml +++ b/mvstore-stress/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -mvclient = { path = "../mvclient" } +mvclient = { path = "../mvclient", version = "0.3.0" } anyhow = "1" thiserror = "1" tokio = { version = "1", features = ["full"] } diff --git a/mvstore/Cargo.toml b/mvstore/Cargo.toml index 035320b..f80e0ec 100644 --- a/mvstore/Cargo.toml +++ b/mvstore/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mvstore" -version = "0.3.0-beta.1" +version = "0.3.0" edition = "2021" license = "Apache-2.0" authors = ["Heyang Zhou "]