From 9b4454ba0dc0792c1b96368bb8721ebb1ab90ab0 Mon Sep 17 00:00:00 2001 From: MrCroxx Date: Tue, 31 Oct 2023 19:43:11 +0800 Subject: [PATCH] chore: update foyer Signed-off-by: MrCroxx --- Cargo.lock | 10 +++++----- src/storage/Cargo.toml | 2 +- src/storage/src/hummock/file_cache/store.rs | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ca19f7ce288ed..1e7a908d39e78 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3036,7 +3036,7 @@ dependencies = [ [[package]] name = "foyer" version = "0.1.0" -source = "git+https://github.com/MrCroxx/foyer?rev=cc87aac#cc87aaca820a452a5ca12e3bfa1f361afe5054ac" +source = "git+https://github.com/MrCroxx/foyer?rev=e3bb81c#e3bb81c859589b59f3554895d149a63fef0c53e5" dependencies = [ "foyer-common", "foyer-intrusive", @@ -3047,7 +3047,7 @@ dependencies = [ [[package]] name = "foyer-common" version = "0.1.0" -source = "git+https://github.com/MrCroxx/foyer?rev=cc87aac#cc87aaca820a452a5ca12e3bfa1f361afe5054ac" +source = "git+https://github.com/MrCroxx/foyer?rev=e3bb81c#e3bb81c859589b59f3554895d149a63fef0c53e5" dependencies = [ "bytes", "foyer-workspace-hack", @@ -3062,7 +3062,7 @@ dependencies = [ [[package]] name = "foyer-intrusive" version = "0.1.0" -source = "git+https://github.com/MrCroxx/foyer?rev=cc87aac#cc87aaca820a452a5ca12e3bfa1f361afe5054ac" +source = "git+https://github.com/MrCroxx/foyer?rev=e3bb81c#e3bb81c859589b59f3554895d149a63fef0c53e5" dependencies = [ "bytes", "cmsketch", @@ -3079,7 +3079,7 @@ dependencies = [ [[package]] name = "foyer-storage" version = "0.1.0" -source = "git+https://github.com/MrCroxx/foyer?rev=cc87aac#cc87aaca820a452a5ca12e3bfa1f361afe5054ac" +source = "git+https://github.com/MrCroxx/foyer?rev=e3bb81c#e3bb81c859589b59f3554895d149a63fef0c53e5" dependencies = [ "anyhow", "bitflags 2.4.0", @@ -3107,7 +3107,7 @@ dependencies = [ [[package]] name = "foyer-workspace-hack" version = "0.1.0" -source = "git+https://github.com/MrCroxx/foyer?rev=cc87aac#cc87aaca820a452a5ca12e3bfa1f361afe5054ac" +source = "git+https://github.com/MrCroxx/foyer?rev=e3bb81c#e3bb81c859589b59f3554895d149a63fef0c53e5" dependencies = [ "crossbeam-utils", "either", diff --git a/src/storage/Cargo.toml b/src/storage/Cargo.toml index 4d88492731759..e4755c2176611 100644 --- a/src/storage/Cargo.toml +++ b/src/storage/Cargo.toml @@ -25,7 +25,7 @@ dyn-clone = "1.0.14" either = "1" enum-as-inner = "0.6" fail = "0.5" -foyer = { git = "https://github.com/MrCroxx/foyer", rev = "cc87aac" } +foyer = { git = "https://github.com/MrCroxx/foyer", rev = "e3bb81c" } futures = { version = "0.3", default-features = false, features = ["alloc"] } futures-async-stream = { workspace = true } hex = "0.4" diff --git a/src/storage/src/hummock/file_cache/store.rs b/src/storage/src/hummock/file_cache/store.rs index 287c8b410d55a..5ede2f1133345 100644 --- a/src/storage/src/hummock/file_cache/store.rs +++ b/src/storage/src/hummock/file_cache/store.rs @@ -265,6 +265,7 @@ where admissions, reinsertions: config.reinsertions, buffer_pool_size: config.buffer_pool_size, + flusher_buffer_size: 131072, // TODO: make it configurable flushers: config.flushers, flush_rate_limit: config.flush_rate_limit, reclaimers: config.reclaimers,