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()'