1
0
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:
Jan Lindström
2015-06-17 09:12:26 +03:00
parent 6a92fa4be5
commit b94eaff8d9
2 changed files with 4 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -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;
}