diff options
author | unknown <heikki@hundin.mysql.fi> | 2005-08-03 18:30:24 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2005-08-03 18:30:24 +0300 |
commit | 20e72a559e877fe74c54ace84d27980416b013b8 (patch) | |
tree | 4ddc04cf4c005241ef168b5c041b8eea252d542b /innobase/buf | |
parent | a8bb376fc7ecc3e26623c897c4ec99739a3d1a29 (diff) | |
parent | e1659c8154bca8965242fba8e90f33539decc95e (diff) | |
download | mariadb-git-20e72a559e877fe74c54ace84d27980416b013b8.tar.gz |
Merge hundin.mysql.fi:/home/heikki/mysql-4.1
into hundin.mysql.fi:/home/heikki/mysql-5.0
innobase/buf/buf0buf.c:
Auto merged
sql/ha_innodb.cc:
Auto merged
Diffstat (limited to 'innobase/buf')
-rw-r--r-- | innobase/buf/buf0buf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/innobase/buf/buf0buf.c b/innobase/buf/buf0buf.c index fe4498e6f10..aa3aef7f97c 100644 --- a/innobase/buf/buf0buf.c +++ b/innobase/buf/buf0buf.c @@ -1776,6 +1776,15 @@ buf_page_create( buf_flush_free_margin(); frame = block->frame; + + /* Reset to zero the file flush lsn field in the page; if the first + page of an ibdata file is 'created' in this function into the buffer + pool then we lose the original contents of the file flush lsn stamp. + Then InnoDB could in a crash recovery print a big, false, corruption + warning if the stamp contains an lsn bigger than the ib_logfile lsn. */ + + memset(frame + FIL_PAGE_FILE_FLUSH_LSN, 0, 8); + #ifdef UNIV_DEBUG buf_dbg_counter++; |