Commit 4feefc10 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5842 fix allocation bug


git-svn-id: file:///svn/toku/tokudb@52267 c7de825b-a66e-492c-adef-691d508d4ae1
parent 03379b20
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment