Commit c7399db6 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-21174 fixup: Remove buf_dblwr_being_created

parent 8bc4ebed
...@@ -39,9 +39,6 @@ using st_::span; ...@@ -39,9 +39,6 @@ using st_::span;
/** The doublewrite buffer */ /** The doublewrite buffer */
buf_dblwr_t* buf_dblwr = NULL; buf_dblwr_t* buf_dblwr = NULL;
/** Set to TRUE when the doublewrite buffer is being created */
ibool buf_dblwr_being_created = FALSE;
#define TRX_SYS_DOUBLEWRITE_BLOCKS 2 #define TRX_SYS_DOUBLEWRITE_BLOCKS 2
/****************************************************************//** /****************************************************************//**
...@@ -144,7 +141,6 @@ buf_dblwr_create() ...@@ -144,7 +141,6 @@ buf_dblwr_create()
start_again: start_again:
mtr.start(); mtr.start();
buf_dblwr_being_created = TRUE;
buf_block_t *trx_sys_block = buf_dblwr_trx_sys_get(&mtr); buf_block_t *trx_sys_block = buf_dblwr_trx_sys_get(&mtr);
...@@ -157,7 +153,6 @@ buf_dblwr_create() ...@@ -157,7 +153,6 @@ buf_dblwr_create()
buf_dblwr_init(TRX_SYS_DOUBLEWRITE + trx_sys_block->frame); buf_dblwr_init(TRX_SYS_DOUBLEWRITE + trx_sys_block->frame);
mtr.commit(); mtr.commit();
buf_dblwr_being_created = FALSE;
return(true); return(true);
} else { } else {
if (UT_LIST_GET_FIRST(fil_system.sys_space->chain)->size if (UT_LIST_GET_FIRST(fil_system.sys_space->chain)->size
...@@ -307,7 +302,6 @@ buf_dblwr_create() ...@@ -307,7 +302,6 @@ buf_dblwr_create()
/* Flush the modified pages to disk and make a checkpoint */ /* Flush the modified pages to disk and make a checkpoint */
log_make_checkpoint(); log_make_checkpoint();
buf_dblwr_being_created = FALSE;
/* Remove doublewrite pages from LRU */ /* Remove doublewrite pages from LRU */
buf_pool_invalidate(); buf_pool_invalidate();
......
...@@ -34,8 +34,6 @@ Created 2011/12/19 Inaam Rana ...@@ -34,8 +34,6 @@ Created 2011/12/19 Inaam Rana
/** Doublewrite system */ /** Doublewrite system */
extern buf_dblwr_t* buf_dblwr; extern buf_dblwr_t* buf_dblwr;
/** Set to TRUE when the doublewrite buffer is being created */
extern ibool buf_dblwr_being_created;
/** Create the doublewrite buffer if the doublewrite buffer header /** Create the doublewrite buffer if the doublewrite buffer header
is not present in the TRX_SYS page. is not present in the TRX_SYS page.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment