summaryrefslogtreecommitdiff
path: root/innobase/buf/buf0buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'innobase/buf/buf0buf.c')
-rw-r--r--innobase/buf/buf0buf.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/innobase/buf/buf0buf.c b/innobase/buf/buf0buf.c
index cbf12c9e55d..2af971d38fd 100644
--- a/innobase/buf/buf0buf.c
+++ b/innobase/buf/buf0buf.c
@@ -1106,13 +1106,13 @@ loop:
buf_read_page(space, offset);
- #ifdef UNIV_DEBUG
+#ifdef UNIV_DEBUG
buf_dbg_counter++;
if (buf_dbg_counter % 37 == 0) {
ut_ad(buf_validate());
}
- #endif
+#endif
goto loop;
}
@@ -1813,21 +1813,6 @@ buf_page_io_complete(
"InnoDB: Error: page n:o stored in the page read in is %lu, should be %lu!\n",
(ulong) read_page_no, (ulong) block->offset);
}
-#ifdef notdefined
- if (block->offset != 0 && read_page_no == 0) {
- /* Check that the page is really uninited */
-
- for (i = 0; i < UNIV_PAGE_SIZE; i++) {
-
- if (*((block->frame) + i) != '\0') {
- fprintf(stderr,
-"InnoDB: Error: page n:o in the page read in is 0, but page %lu is inited!\n",
- block->offset);
- break;
- }
- }
- }
-#endif
/* From version 3.23.38 up we store the page checksum
to the 4 first bytes of the page end lsn field */