An unused dirty block would put again into the unused list.
* This could cause bug #8123. While this fixes the crash, one underlying problem is still there, as dirty blocks should never leave a transaction.
This commit is contained in:
committed by
Axel Dörfler
parent
03aa456e2e
commit
8959a4e0c3
@@ -927,7 +927,7 @@ write_cached_block(block_cache* cache, cached_block* block,
|
||||
}
|
||||
}
|
||||
}
|
||||
if (block->transaction == NULL && block->ref_count == 0) {
|
||||
if (block->transaction == NULL && block->ref_count == 0 && !block->unused) {
|
||||
// the block is no longer used
|
||||
block->unused = true;
|
||||
cache->unused_blocks.Add(block);
|
||||
|
||||
Reference in New Issue
Block a user