mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
refs #5842 fix allocation bug
git-svn-id: file:///svn/toku/tokudb@52267 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
03379b2059
commit
4feefc100e
1 changed files with 1 additions and 1 deletions
|
@ -2961,7 +2961,7 @@ read_and_decompress_block_from_fd_into_rbuf(int fd, BLOCKNUM blocknum,
|
|||
if (0) printf("Deserializing Block %" PRId64 "\n", blocknum.b);
|
||||
|
||||
DISKOFF size_aligned = roundup_to_multiple(512, size);
|
||||
uint8_t *XMALLOC_N_ALIGNED(512, size, raw_block);
|
||||
uint8_t *XMALLOC_N_ALIGNED(512, size_aligned, raw_block);
|
||||
{
|
||||
// read the (partially compressed) block
|
||||
ssize_t rlen = toku_os_pread(fd, raw_block, size_aligned, offset);
|
||||
|
|
Loading…
Add table
Reference in a new issue