summaryrefslogtreecommitdiff
path: root/innobase/buf
diff options
context:
space:
mode:
authorunknown <heikki@donna.mysql.fi>2001-11-14 17:06:04 +0200
committerunknown <heikki@donna.mysql.fi>2001-11-14 17:06:04 +0200
commitfb9d56cdede7e8737fc2058878a8aed6897c8d75 (patch)
tree8dfab6a24bddac1f0d85f2acf1ddb62cdd29421f /innobase/buf
parentbc1ea614671d2b16696c9b5a666ff6f5a1039428 (diff)
downloadmariadb-git-fb9d56cdede7e8737fc2058878a8aed6897c8d75.tar.gz
buf0flu.c:
Fix a bug which could cause InnoDB to complain it cannot find free blocks from the buffer cache during recovery innobase/buf/buf0flu.c: Fix a bug which could cause InnoDB to complain it cannot find free blocks from the buffer cache during recovery
Diffstat (limited to 'innobase/buf')
-rw-r--r--innobase/buf/buf0flu.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/innobase/buf/buf0flu.c b/innobase/buf/buf0flu.c
index 4217a3ba99b..cfa814bcb05 100644
--- a/innobase/buf/buf0flu.c
+++ b/innobase/buf/buf0flu.c
@@ -138,15 +138,11 @@ buf_flush_ready_for_flush(
return(TRUE);
- } else if ((block->old || (UT_LIST_GET_LEN(buf_pool->LRU)
- < BUF_LRU_OLD_MIN_LEN))
- && (block->buf_fix_count == 0)) {
+ } else if (block->buf_fix_count == 0) {
/* If we are flushing the LRU list, to avoid deadlocks
we require the block not to be bufferfixed, and hence
- not latched. Since LRU flushed blocks are soon moved
- to the free list, it is good to flush only old blocks
- from the end of the LRU list. */
+ not latched. */
return(TRUE);
}