mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
MDEV-8310: Encryption bogus message still in 10.1.5
Moved warning print to debug builds only because on production these messages are unnecessary.
This commit is contained in:
@@ -271,6 +271,7 @@ fil_space_read_crypt_data(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
|
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
|
||||||
|
#ifdef UNIV_DEBUG
|
||||||
ib_logf(IB_LOG_LEVEL_WARN,
|
ib_logf(IB_LOG_LEVEL_WARN,
|
||||||
"Found potentially bogus bytes on "
|
"Found potentially bogus bytes on "
|
||||||
"page 0 offset %lu for space %lu : "
|
"page 0 offset %lu for space %lu : "
|
||||||
@@ -283,6 +284,7 @@ fil_space_read_crypt_data(
|
|||||||
page[offset + 3],
|
page[offset + 3],
|
||||||
page[offset + 4],
|
page[offset + 4],
|
||||||
page[offset + 5]);
|
page[offset + 5]);
|
||||||
|
#endif
|
||||||
/* Create data is not stored. */
|
/* Create data is not stored. */
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@@ -271,6 +271,7 @@ fil_space_read_crypt_data(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
|
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
|
||||||
|
#ifdef UNIV_DEBUG
|
||||||
ib_logf(IB_LOG_LEVEL_WARN,
|
ib_logf(IB_LOG_LEVEL_WARN,
|
||||||
"Found potentially bogus bytes on "
|
"Found potentially bogus bytes on "
|
||||||
"page 0 offset %lu for space %lu : "
|
"page 0 offset %lu for space %lu : "
|
||||||
@@ -283,6 +284,7 @@ fil_space_read_crypt_data(
|
|||||||
page[offset + 3],
|
page[offset + 3],
|
||||||
page[offset + 4],
|
page[offset + 4],
|
||||||
page[offset + 5]);
|
page[offset + 5]);
|
||||||
|
#endif
|
||||||
/* Crypt data is not stored. */
|
/* Crypt data is not stored. */
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user