summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.cc
diff options
context:
space:
mode:
authorunknown <aivanov@mysql.com>2006-05-15 17:25:37 +0400
committerunknown <aivanov@mysql.com>2006-05-15 17:25:37 +0400
commit8069b05da0b23e5bcc3c410f7ee4669afea41714 (patch)
treef54674fcbbf1ecf0aa64967e4671fd5034e0f767 /sql/ha_innodb.cc
parent1bdb7f7789f4c1b02a97210e3818d49f6e064bc2 (diff)
downloadmariadb-git-8069b05da0b23e5bcc3c410f7ee4669afea41714.tar.gz
Applied innodb-4.1-ss29 snapshot.
Fix BUG#19542 "InnoDB doesn't increase the Handler_read_prev counter. innobase/os/os0file.c: Applied innodb-4.1-ss29 snapshot. Check the page trailers also after writing to disk. This improves the chances of diagnosing Bug 18886. os_file_check_page_trailers(): New function for checking that two copies of the LSN stamped on the pages match. os_aio_simulated_handle(): Call os_file_check_page_trailers() before and after os_file_write(). sql/ha_innodb.cc: Applied innodb-4.1-ss29 snapshot. Increment statistic counter in ha_innobase::index_prev().
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r--sql/ha_innodb.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc
index 8455bbaf4d0..6c93ac293d0 100644
--- a/sql/ha_innodb.cc
+++ b/sql/ha_innodb.cc
@@ -3431,6 +3431,8 @@ ha_innobase::index_prev(
mysql_byte* buf) /* in/out: buffer for previous row in MySQL
format */
{
+ statistic_increment(ha_read_prev_count, &LOCK_status);
+
return(general_fetch(buf, ROW_SEL_PREV, 0));
}