Commit 14d12488 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix a crash when page_compression fails during IMPORT TABLESPACE

fil_compress_page(): Check for space==NULL.
parent 11f772fa
......@@ -362,7 +362,8 @@ fil_compress_page(
/* If error we leave the actual page as it was */
#ifndef UNIV_PAGECOMPRESS_DEBUG
if (!space->printed_compression_failure) {
if (space && !space->printed_compression_failure) {
space->printed_compression_failure = true;
#endif
ib::warn() << "Compression failed for space: "
<< space->id << " name: "
......@@ -372,7 +373,6 @@ fil_compress_page(
<< " compression method: "
<< fil_get_compression_alg_name(comp_method)
<< ".";
space->printed_compression_failure = true;
#ifndef UNIV_PAGECOMPRESS_DEBUG
}
#endif
......
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