From b278087410dae6060d45a71faa818dfba2c5635a Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 11 May 2026 13:01:03 +0300 Subject: [PATCH] Fix assert in blockstore_heap --- src/blockstore/blockstore_heap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockstore/blockstore_heap.cpp b/src/blockstore/blockstore_heap.cpp index 459faf08..cb6f78dc 100644 --- a/src/blockstore/blockstore_heap.cpp +++ b/src/blockstore/blockstore_heap.cpp @@ -2541,7 +2541,7 @@ void blockstore_heap_t::remove_list_item(heap_list_item_t *li) { // The last freed entry must be a deletion assert(!li->prev); - assert(li->entry.entry_type == BS_HEAP_DELETE|BS_HEAP_STABLE); + assert((li->entry.entry_type & ~BS_HEAP_GARBAGE) == (BS_HEAP_DELETE|BS_HEAP_STABLE)); } else if (!li->prev && li->next->entry.entry_type == (BS_HEAP_DELETE|BS_HEAP_STABLE)) {