summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-04-04 16:56:28 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-04-04 16:56:28 +0300
commit7920a797836358a9b550ad16d52b6f69c060246b (patch)
tree1435ff4d5b0ebe0a5aca2b5d94747aa48fd464d4
parent06d770d5034cdd060704607959a94cf59f5ae676 (diff)
downloadmariadb-git-7920a797836358a9b550ad16d52b6f69c060246b.tar.gz
Revert a diagnostic patch
-rw-r--r--storage/innobase/fil/fil0crypt.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/storage/innobase/fil/fil0crypt.cc b/storage/innobase/fil/fil0crypt.cc
index 3ab2b18d448..32fd844ec17 100644
--- a/storage/innobase/fil/fil0crypt.cc
+++ b/storage/innobase/fil/fil0crypt.cc
@@ -697,13 +697,7 @@ fil_space_encrypt(
memcpy(tmp_mem + FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION,
src + FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION, 8);
- if (memcmp(src, tmp_mem, page_size.physical())) {
- fputs("\nInnoDB: old page from disk:", stderr);
- ut_print_buf(stderr, src, page_size.physical());
- fputs("\nInnoDB: After decompressing the page:", stderr);
- ut_print_buf(stderr, tmp_mem, page_size.physical());
- ut_ad(0);
- }
+ ut_ad(!memcmp(src, tmp_mem, page_size.physical()));
}
#endif /* UNIV_DEBUG */