summaryrefslogtreecommitdiff
path: root/innobase/fsp
diff options
context:
space:
mode:
authormarko@hundin.mysql.fi <>2004-02-20 16:34:09 +0200
committermarko@hundin.mysql.fi <>2004-02-20 16:34:09 +0200
commit234e9abf6afb47cd3200eb2f7c421d644a6047ab (patch)
tree96c04a7ccc804314e3737d02fc081513e1e827db /innobase/fsp
parent7acccd81dc23a89e9221d265e0bcaf3a544ea09b (diff)
downloadmariadb-git-234e9abf6afb47cd3200eb2f7c421d644a6047ab.tar.gz
Many files:
Removed unused code .del-os0trash.c~8cae5c1695501117: Delete: innobase/os/os0trash.c dict0crea.c: Protect all sprintf(%s) with assertions
Diffstat (limited to 'innobase/fsp')
-rw-r--r--innobase/fsp/fsp0fsp.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/innobase/fsp/fsp0fsp.c b/innobase/fsp/fsp0fsp.c
index 8727c5156e4..2cb3ad43e7f 100644
--- a/innobase/fsp/fsp0fsp.c
+++ b/innobase/fsp/fsp0fsp.c
@@ -764,19 +764,12 @@ fsp_init_file_page_low(
byte* ptr) /* in: pointer to a page */
{
page_t* page;
-#ifdef UNIV_BASIC_LOG_DEBUG
- ulint i;
-#endif
page = buf_frame_align(ptr);
buf_block_align(page)->check_index_page_at_flush = FALSE;
-
-#ifdef UNIV_BASIC_LOG_DEBUG
-/* printf("In log debug version: Erase the contents of the file page\n");
-*/
- for (i = 0; i < UNIV_PAGE_SIZE; i++) {
- page[i] = 0xFF;
- }
+
+#ifdef UNIV_BASIC_LOG_DEBUG
+ memset(page, 0xff, UNIV_PAGE_SIZE);
#endif
mach_write_to_8(page + UNIV_PAGE_SIZE - FIL_PAGE_END_LSN_OLD_CHKSUM,
ut_dulint_zero);
@@ -786,6 +779,7 @@ fsp_init_file_page_low(
/***************************************************************
Inits a file page whose prior contents should be ignored. */
+static
void
fsp_init_file_page(
/*===============*/