Commit b1143bcd authored by marko's avatar marko

branches/innodb+: buf_page_init(): Fix a bug in r6794

that caused a SIGSEGV on compressed pages (block==NULL dereferenced).
parent 3d9f3eed
......@@ -3174,7 +3174,7 @@ err_exit:
/* Preserve the reference count. */
ulint buf_fix_count = watch_page->buf_fix_count;
ut_a(buf_fix_count > 0);
block->page.buf_fix_count += buf_fix_count;
bpage->buf_fix_count += buf_fix_count;
ut_ad(buf_pool_watch_is(watch_page));
buf_pool_watch_remove(fold, watch_page);
}
......
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