~tsarev/percona-server/5.5-processlist_rows_stats-sporadic_fails-fix

« back to all changes in this revision

Viewing changes to innodb_opt_lru_count.patch

  • Committer: kinoyasu
  • Date: 2011-05-10 11:57:42 UTC
  • Revision ID: kinoyasu@gauntlet4-20110510115742-3i3194rn2m8fipm2
port Yasufumi patches to 5.5.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        ut_d(bpage->in_page_hash = FALSE);
41
41
 
42
42
        /* relocate buf_pool->LRU */
43
 
@@ -3730,8 +3730,8 @@
 
43
@@ -3747,8 +3747,8 @@
44
44
                bpage->in_zip_hash = FALSE;
45
45
                bpage->in_flush_list = FALSE;
46
46
                bpage->in_free_list = FALSE;
50
50
 
51
51
                ut_d(bpage->in_page_hash = TRUE);
52
52
 
53
 
@@ -3894,7 +3894,7 @@
 
53
@@ -3911,7 +3911,7 @@
54
54
        ibuf_merge_or_delete_for_page(NULL, space, offset, zip_size, TRUE);
55
55
 
56
56
        /* Flush pages from the end of the LRU list if necessary */
190
190
diff -ruN a/storage/innobase/buf/buf0lru.c b/storage/innobase/buf/buf0lru.c
191
191
--- a/storage/innobase/buf/buf0lru.c    2010-11-03 07:01:13.000000000 +0900
192
192
+++ b/storage/innobase/buf/buf0lru.c    2010-12-03 15:20:49.602952786 +0900
193
 
@@ -992,7 +992,7 @@
 
193
@@ -996,7 +996,7 @@
194
194
 
195
195
        /* No free block was found: try to flush the LRU list */
196
196
 
199
199
        ++srv_buf_pool_wait_free;
200
200
 
201
201
        os_aio_simulated_wake_handler_threads();
202
 
@@ -1189,7 +1189,7 @@
 
202
@@ -1193,7 +1193,7 @@
203
203
 
204
204
        /* Remove the block from the LRU list */
205
205
        UT_LIST_REMOVE(LRU, buf_pool->LRU, bpage);
208
208
 
209
209
        buf_unzip_LRU_remove_block_if_needed(bpage);
210
210
 
211
 
@@ -1268,7 +1268,7 @@
 
211
@@ -1272,7 +1272,7 @@
212
212
 
213
213
        ut_ad(!bpage->in_LRU_list);
214
214
        UT_LIST_ADD_LAST(LRU, buf_pool->LRU, bpage);
217
217
 
218
218
        if (UT_LIST_GET_LEN(buf_pool->LRU) > BUF_LRU_OLD_MIN_LEN) {
219
219
 
220
 
@@ -1338,7 +1338,7 @@
 
220
@@ -1342,7 +1342,7 @@
221
221
                buf_pool->LRU_old_len++;
222
222
        }
223
223
 
226
226
 
227
227
        if (UT_LIST_GET_LEN(buf_pool->LRU) > BUF_LRU_OLD_MIN_LEN) {
228
228
 
229
 
@@ -1589,7 +1589,7 @@
 
229
@@ -1593,7 +1593,7 @@
230
230
                                buf_page_set_old(b, buf_page_is_old(b));
231
231
 #endif /* UNIV_LRU_DEBUG */
232
232
                        } else {
247
247
 
248
248
        /* Increment number of I/O operations used for LRU policy. */
249
249
        buf_LRU_stat_inc_io();
250
 
@@ -476,7 +476,7 @@
 
250
@@ -474,7 +474,7 @@
251
251
        os_aio_simulated_wake_handler_threads();
252
252
 
253
253
        /* Flush pages from the end of the LRU list if necessary */
256
256
 
257
257
 #ifdef UNIV_DEBUG
258
258
        if (buf_debug_prints && (count > 0)) {
259
 
@@ -565,7 +565,7 @@
 
259
@@ -562,7 +562,7 @@
260
260
        os_aio_simulated_wake_handler_threads();
261
261
 
262
262
        /* Flush pages from the end of all the LRU lists if necessary */
265
265
 
266
266
 #ifdef UNIV_DEBUG
267
267
        if (buf_debug_prints) {
268
 
@@ -659,7 +659,7 @@
 
268
@@ -656,7 +656,7 @@
269
269
        os_aio_simulated_wake_handler_threads();
270
270
 
271
271
        /* Flush pages from the end of all the LRU lists if necessary */
277
277
diff -ruN a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h
278
278
--- a/storage/innobase/include/buf0buf.h        2010-11-03 07:01:13.000000000 +0900
279
279
+++ b/storage/innobase/include/buf0buf.h        2010-12-03 15:20:49.608986590 +0900
280
 
@@ -1385,11 +1385,11 @@
 
280
@@ -1387,11 +1387,11 @@
281
281
 
282
282
        UT_LIST_NODE_T(buf_page_t) LRU;
283
283
                                        /*!< node of the LRU list */