We use FlushObserver to track flushing of non-redo logged pages in bulk create index(BtrBulk.cc).Since we disable redo logging during a index build, we need to make sure that all dirty pages modifed by the index build are flushed to disk before any redo logged operations go to the index.
More...
#include <buf0flu.h>
We use FlushObserver to track flushing of non-redo logged pages in bulk create index(BtrBulk.cc).Since we disable redo logging during a index build, we need to make sure that all dirty pages modifed by the index build are flushed to disk before any redo logged operations go to the index.
◆ FlushObserver()
◆ ~FlushObserver()
FlushObserver::~FlushObserver |
( |
| ) |
|
◆ check_interrupted()
bool FlushObserver::check_interrupted |
( |
| ) |
|
Check whether trx is interrupted.
- Returns
- true if trx is interrupted
◆ flush()
void FlushObserver::flush |
( |
| ) |
|
Flush dirty pages.
Flush dirty pages and wait.
◆ interrupted()
void FlushObserver::interrupted |
( |
| ) |
|
|
inline |
Interrupt observer not to wait.
◆ is_complete()
bool FlushObserver::is_complete |
( |
ulint |
instance_no | ) |
|
|
inline |
Check pages have been flushed and removed from the flush list in a buffer pool instance.
- Parameters
-
[in] | instance_no | buffer pool instance no |
- Returns
- true if the pages were removed from the flush list
◆ notify_flush()
Notify observer of flushing a page.
Notify observer of a flush.
- Parameters
-
[in] | buf_pool | buffer pool instance |
[in] | bpage | buffer page to flush |
◆ notify_remove()
Notify observer of removing a page from flush list.
Notify observer of a remove.
- Parameters
-
[in] | buf_pool | buffer pool instance |
[in] | bpage | buffer page flushed |
◆ m_flushed
std::vector<ulint>* FlushObserver::m_flushed |
|
private |
◆ m_interrupted
bool FlushObserver::m_interrupted |
|
private |
◆ m_removed
std::vector<ulint>* FlushObserver::m_removed |
|
private |
◆ m_space_id
◆ m_stage
Performance schema accounting object, used by ALTER TABLE.
If not NULL, then stage->begin_phase_flush() will be called initially, specifying the number of pages to be attempted to be flushed and subsequently, stage->inc() will be called for each page we attempt to flush.
◆ m_trx
trx_t* FlushObserver::m_trx |
|
private |
The documentation for this class was generated from the following files: