1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03: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:
marko
2006-10-12 12:44:46 +00:00
parent 06bb7e6ea5
commit bbcef45a64

View File

@@ -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;
}
}