Add an assertion when clearing deleted metadata entries, add debug details when freeing blocks

This commit is contained in:
Vitaliy Filippov
2021-04-03 00:53:28 +03:00
parent df99e232ee
commit 843b7052d2
3 changed files with 21 additions and 4 deletions
+4 -1
View File
@@ -111,7 +111,10 @@ void blockstore_init_meta::handle_entries(void* entries, unsigned count, int blo
{
// free the previous block
#ifdef BLOCKSTORE_DEBUG
printf("Free block %lu (new location is %lu)\n", clean_it->second.location >> block_order, done_cnt+i);
printf("Free block %lu from %lx:%lx v%lu (new location is %lu)\n",
clean_it->second.location >> block_order,
clean_it->first.inode, clean_it->first.stripe, clean_it->second.version,
done_cnt+i);
#endif
bs->data_alloc->set(clean_it->second.location >> block_order, false);
}