From e703be3fce58d49b115411b83143d89b5b6f5cc4 Mon Sep 17 00:00:00 2001 From: Iris Shi <0.0@owo.li> Date: Sat, 14 Dec 2024 12:08:10 +0800 Subject: [PATCH] fix --- mercury/src/internal/pack/cache.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mercury/src/internal/pack/cache.rs b/mercury/src/internal/pack/cache.rs index 7a1a2e727..5b8b5cb9d 100644 --- a/mercury/src/internal/pack/cache.rs +++ b/mercury/src/internal/pack/cache.rs @@ -162,7 +162,9 @@ impl _Cache for Caches { self.complete_signal.clone(), Some(self.pool.clone()), ); - a_obj.set_store_path(self.generate_temp_path(&self.tmp_path, hash)); + if self.mem_size.is_some() { + a_obj.set_store_path(self.generate_temp_path(&self.tmp_path, hash)); + } let _ = map.insert(hash, a_obj); } //order maters as for reading in 'get_by_offset()'