diff options
author | unknown <aivanov@mysql.com> | 2006-05-15 18:02:21 +0400 |
---|---|---|
committer | unknown <aivanov@mysql.com> | 2006-05-15 18:02:21 +0400 |
commit | c55912b09ed31596502b693d1939b94aeb193279 (patch) | |
tree | 05700e58545e4fbc79491628d9ca1a20defa92d7 /sql/ha_innodb.cc | |
parent | 3fa6432b09be41ddcc8dae2a8e12eacab5bb95a2 (diff) | |
download | mariadb-git-c55912b09ed31596502b693d1939b94aeb193279.tar.gz |
Applied innodb-5.0-ss547 snapshot.
Fix BUG#19542 "InnoDB doesn't increase the Handler_read_prev counter".
innobase/os/os0file.c:
Applied innodb-5.0-ss547 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-5.0-ss547 snapshot.
Increment statistic counter in ha_innobase::index_prev().
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r-- | sql/ha_innodb.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index 934437e0c91..28cdfd23b6a 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -4048,6 +4048,9 @@ ha_innobase::index_prev( mysql_byte* buf) /* in/out: buffer for previous row in MySQL format */ { + statistic_increment(current_thd->status_var.ha_read_prev_count, + &LOCK_status); + return(general_fetch(buf, ROW_SEL_PREV, 0)); } |