Skip to content

Commit b94eaff

Browse files
author
Jan Lindström
committed
MDEV-8310: Encryption bogus message still in 10.1.5
Moved warning print to debug builds only because on production these messages are unnecessary.
1 parent 6a92fa4 commit b94eaff

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

storage/innobase/fil/fil0crypt.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ fil_space_read_crypt_data(
271271
}
272272

273273
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
274+
#ifdef UNIV_DEBUG
274275
ib_logf(IB_LOG_LEVEL_WARN,
275276
"Found potentially bogus bytes on "
276277
"page 0 offset %lu for space %lu : "
@@ -283,6 +284,7 @@ fil_space_read_crypt_data(
283284
page[offset + 3],
284285
page[offset + 4],
285286
page[offset + 5]);
287+
#endif
286288
/* Create data is not stored. */
287289
return NULL;
288290
}

storage/xtradb/fil/fil0crypt.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ fil_space_read_crypt_data(
271271
}
272272

273273
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
274+
#ifdef UNIV_DEBUG
274275
ib_logf(IB_LOG_LEVEL_WARN,
275276
"Found potentially bogus bytes on "
276277
"page 0 offset %lu for space %lu : "
@@ -283,6 +284,7 @@ fil_space_read_crypt_data(
283284
page[offset + 3],
284285
page[offset + 4],
285286
page[offset + 5]);
287+
#endif
286288
/* Crypt data is not stored. */
287289
return NULL;
288290
}

0 commit comments

Comments
 (0)