Commit f4b87b44 authored by marko's avatar marko

branches/zip: Check that page_zip->data is defined, not page_zip itself.

parent 6b2c92e1
......@@ -1032,7 +1032,7 @@ btr_cur_optimistic_insert(
#ifdef UNIV_DEBUG_VALGRIND
if (zip_size) {
UNIV_MEM_ASSERT_RW(page, UNIV_PAGE_SIZE);
UNIV_MEM_ASSERT_RW(buf_block_get_page_zip(block), zip_size);
UNIV_MEM_ASSERT_RW(block->page.zip.data, zip_size);
}
#endif /* UNIV_DEBUG_VALGRIND */
......
......@@ -1253,7 +1253,7 @@ zlib_error:
page_zip_compress_ok[page_zip->ssize]++;
UNIV_MEM_ASSERT_RW(page_zip, page_zip_get_size(page_zip));
UNIV_MEM_ASSERT_RW(page_zip->data, page_zip_get_size(page_zip));
return(TRUE);
}
......
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