From d7e690e0699be9d5102c0bd1af46dfc90aaeef32 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 18 Mar 2008 17:31:51 +0000 Subject: [PATCH] MARIA: PAGE_CHECKSUM (does not currently work in 5.1.23a-maria) --- tbl_operations.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tbl_operations.php b/tbl_operations.php index e7312435b..c11490186 100644 --- a/tbl_operations.php +++ b/tbl_operations.php @@ -117,6 +117,12 @@ if (isset($_REQUEST['submitoptions'])) { $table_alters[] = 'TRANSACTIONAL = ' . $_REQUEST['new_transactional']; } + $_REQUEST['new_page_checksum'] = empty($_REQUEST['new_page_checksum']) ? '0' : '1'; + if ($is_maria + && $_REQUEST['new_page_checksum'] !== $page_checksum) { + $table_alters[] = 'PAGE_CHECKSUM = ' . $_REQUEST['new_page_checksum']; + } + $delay_key_write = empty($delay_key_write) ? '0' : '1'; $_REQUEST['new_delay_key_write'] = empty($_REQUEST['new_delay_key_write']) ? '0' : '1'; if ($is_myisam_or_maria @@ -160,7 +166,7 @@ if (isset($_REQUEST['submit_partition']) && ! empty($_REQUEST['partition_operati } // end if if ($reread_info) { - $checksum = $delay_key_write = 0; + $page_checksum = $checksum = $delay_key_write = 0; require './libraries/tbl_info.inc.php'; } unset($reread_info); @@ -373,6 +379,15 @@ if ($is_maria) { + + /> + + +