Skip to content

Commit b3d84f8

Browse files
committed
add assertion for safety check
1 parent db99b8d commit b3d84f8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/core/db.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ uint32_t db_block_allocate_new(){
198198
db.blocks_free--;
199199
}
200200
else{
201+
assert(db.blocks_free == 0);
201202
block_num = db.blocks_exist;
202203
db.blocks_exist++;
203204
db_block_size();

0 commit comments

Comments
 (0)