Commit 51a1fc73 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix a compiler warning

fil_space_verify_crypt_checksum(): Add a dummy return statement
in case memory is corrupted and innodb_checksum_algorithm has
an invalid value.
parent 8c43f963
......@@ -2630,4 +2630,7 @@ bool fil_space_verify_crypt_checksum(const byte* page, ulint zip_size)
return checksum == buf_calc_page_crc32(page)
|| checksum == buf_calc_page_new_checksum(page);
}
ut_ad(!"unhandled innodb_checksum_algorithm");
return false;
}
......@@ -2630,4 +2630,7 @@ bool fil_space_verify_crypt_checksum(const byte* page, ulint zip_size)
return checksum == buf_calc_page_crc32(page)
|| checksum == buf_calc_page_new_checksum(page);
}
ut_ad(!"unhandled innodb_checksum_algorithm");
return false;
}
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