From 05ebd42ac59bd29d006cbb68d37365ea02afe044 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Mon, 3 Oct 2022 12:18:48 -0700 Subject: [PATCH] remove troublesome assert (#28195) --- runtime/src/cache_hash_data.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/runtime/src/cache_hash_data.rs b/runtime/src/cache_hash_data.rs index 0a9a6f5753..91b9baff44 100644 --- a/runtime/src/cache_hash_data.rs +++ b/runtime/src/cache_hash_data.rs @@ -76,12 +76,6 @@ impl CacheHashDataFile { let start = self.get_element_offset_byte(ix); let item_slice: &[u8] = &self.mmap[start..]; let remaining_elements = item_slice.len() / std::mem::size_of::(); - assert!( - remaining_elements > 0, - "ix: {ix}, remaining_elements: {remaining_elements}, capacity: {}", - self.mmap.len() - ); - unsafe { let item = item_slice.as_ptr() as *const EntryType; std::slice::from_raw_parts(item, remaining_elements)