mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
branches/zip: mem_heap_create_block(): Correct an error introduced in r909:
When allocating a block from heap->free_block, set buf_block.
This commit is contained in:
parent
a208526186
commit
82de286dc6
1 changed files with 3 additions and 4 deletions
|
@ -377,14 +377,13 @@ mem_heap_create_block(
|
|||
buffer pool, but must get the free block from
|
||||
the heap header free block field */
|
||||
|
||||
block = (mem_block_t*)
|
||||
((buf_block_t*) heap->free_block)
|
||||
->frame;
|
||||
buf_block = heap->free_block;
|
||||
heap->free_block = NULL;
|
||||
} else {
|
||||
buf_block = buf_block_alloc(0);
|
||||
block = (mem_block_t*) buf_block->frame;
|
||||
}
|
||||
|
||||
block = (mem_block_t*) buf_block->frame;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue