Commit b94eaff8 authored by Jan Lindström's avatar Jan Lindström

MDEV-8310: Encryption bogus message still in 10.1.5

Moved warning print to debug builds only because on production
these messages are unnecessary.
parent 6a92fa4b
......@@ -271,6 +271,7 @@ fil_space_read_crypt_data(
}
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
#ifdef UNIV_DEBUG
ib_logf(IB_LOG_LEVEL_WARN,
"Found potentially bogus bytes on "
"page 0 offset %lu for space %lu : "
......@@ -283,6 +284,7 @@ fil_space_read_crypt_data(
page[offset + 3],
page[offset + 4],
page[offset + 5]);
#endif
/* Create data is not stored. */
return NULL;
}
......
......@@ -271,6 +271,7 @@ fil_space_read_crypt_data(
}
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
#ifdef UNIV_DEBUG
ib_logf(IB_LOG_LEVEL_WARN,
"Found potentially bogus bytes on "
"page 0 offset %lu for space %lu : "
......@@ -283,6 +284,7 @@ fil_space_read_crypt_data(
page[offset + 3],
page[offset + 4],
page[offset + 5]);
#endif
/* Crypt data is not stored. */
return NULL;
}
......
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