|
1 | 1 | /*****************************************************************************
|
2 | 2 |
|
3 | 3 | Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
|
4 |
| -Copyright (c) 2014, 2017, MariaDB Corporation. |
| 4 | +Copyright (c) 2014, 2018, MariaDB Corporation. |
5 | 5 |
|
6 | 6 | This program is free software; you can redistribute it and/or modify it under
|
7 | 7 | the terms of the GNU General Public License as published by the Free Software
|
@@ -424,57 +424,6 @@ class FlushObserver {
|
424 | 424 | bool m_interrupted;
|
425 | 425 | };
|
426 | 426 |
|
427 |
| -/******************************************************************//** |
428 |
| -Start a buffer flush batch for LRU or flush list */ |
429 |
| -ibool |
430 |
| -buf_flush_start( |
431 |
| -/*============*/ |
432 |
| - buf_pool_t* buf_pool, /*!< buffer pool instance */ |
433 |
| - buf_flush_t flush_type); /*!< in: BUF_FLUSH_LRU |
434 |
| - or BUF_FLUSH_LIST */ |
435 |
| -/******************************************************************//** |
436 |
| -End a buffer flush batch for LRU or flush list */ |
437 |
| -void |
438 |
| -buf_flush_end( |
439 |
| -/*==========*/ |
440 |
| - buf_pool_t* buf_pool, /*!< buffer pool instance */ |
441 |
| - buf_flush_t flush_type); /*!< in: BUF_FLUSH_LRU |
442 |
| - or BUF_FLUSH_LIST */ |
443 |
| -/******************************************************************//** |
444 |
| -Gather the aggregated stats for both flush list and LRU list flushing */ |
445 |
| -void |
446 |
| -buf_flush_common( |
447 |
| -/*=============*/ |
448 |
| - buf_flush_t flush_type, /*!< in: type of flush */ |
449 |
| - ulint page_count); /*!< in: number of pages flushed */ |
450 |
| - |
451 |
| -/*******************************************************************//** |
452 |
| -This utility flushes dirty blocks from the end of the LRU list or flush_list. |
453 |
| -NOTE 1: in the case of an LRU flush the calling thread may own latches to |
454 |
| -pages: to avoid deadlocks, this function must be written so that it cannot |
455 |
| -end up waiting for these latches! NOTE 2: in the case of a flush list flush, |
456 |
| -the calling thread is not allowed to own any latches on pages! */ |
457 |
| -__attribute__((nonnull)) |
458 |
| -void |
459 |
| -buf_flush_batch( |
460 |
| -/*============*/ |
461 |
| - buf_pool_t* buf_pool, /*!< in: buffer pool instance */ |
462 |
| - buf_flush_t flush_type, /*!< in: BUF_FLUSH_LRU or |
463 |
| - BUF_FLUSH_LIST; if BUF_FLUSH_LIST, |
464 |
| - then the caller must not own any |
465 |
| - latches on pages */ |
466 |
| - ulint min_n, /*!< in: wished minimum mumber of blocks |
467 |
| - flushed (it is not guaranteed that the |
468 |
| - actual number is that big, though) */ |
469 |
| - lsn_t lsn_limit, /*!< in: in the case of BUF_FLUSH_LIST |
470 |
| - all blocks whose oldest_modification is |
471 |
| - smaller than this should be flushed |
472 |
| - (if their number does not exceed |
473 |
| - min_n), otherwise ignored */ |
474 |
| - flush_counters_t* n); /*!< out: flushed/evicted page |
475 |
| - counts */ |
476 |
| - |
477 |
| - |
478 | 427 | #include "buf0flu.ic"
|
479 | 428 |
|
480 | 429 | #endif
|
0 commit comments