mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
Applying InnoDB snapshot
Detailed revision comments: r6830 | marko | 2010-03-18 09:48:18 +0200 (Thu, 18 Mar 2010) | 3 lines branches/zip: buf_page_peek_if_too_old(): Use 32-bit arithmetics when comparing the age of access_time to buf_LRU_old_threshold_ms. This fixes a bug on 64-bit systems.
This commit is contained in:
parent
51af103725
commit
b5fb2639d8
2 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2010-03-18 The InnoDB Team
|
||||
|
||||
* buf0buf.ic:
|
||||
When comparing the time of the first access to a block against
|
||||
innodb_old_blocks_time, use 32-bit arithmetics. The comparison
|
||||
was incorrect on 64-bit systems.
|
||||
|
||||
2010-03-11 The InnoDB Team
|
||||
|
||||
* buf0buf.h, buf0buf.ic:
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ buf_page_peek_if_too_old(
|
|||
unsigned access_time = buf_page_is_accessed(bpage);
|
||||
|
||||
if (access_time > 0
|
||||
&& (ut_time_ms() - access_time)
|
||||
&& ((ib_uint32_t) (ut_time_ms() - access_time))
|
||||
>= buf_LRU_old_threshold_ms) {
|
||||
return(TRUE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue