Skip to content

Commit c7399db

Browse files
committed
MDEV-21174 fixup: Remove buf_dblwr_being_created
1 parent 8bc4ebe commit c7399db

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

storage/innobase/buf/buf0dblwr.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ using st_::span;
3939
/** The doublewrite buffer */
4040
buf_dblwr_t* buf_dblwr = NULL;
4141

42-
/** Set to TRUE when the doublewrite buffer is being created */
43-
ibool buf_dblwr_being_created = FALSE;
44-
4542
#define TRX_SYS_DOUBLEWRITE_BLOCKS 2
4643

4744
/****************************************************************//**
@@ -144,7 +141,6 @@ buf_dblwr_create()
144141

145142
start_again:
146143
mtr.start();
147-
buf_dblwr_being_created = TRUE;
148144

149145
buf_block_t *trx_sys_block = buf_dblwr_trx_sys_get(&mtr);
150146

@@ -157,7 +153,6 @@ buf_dblwr_create()
157153
buf_dblwr_init(TRX_SYS_DOUBLEWRITE + trx_sys_block->frame);
158154

159155
mtr.commit();
160-
buf_dblwr_being_created = FALSE;
161156
return(true);
162157
} else {
163158
if (UT_LIST_GET_FIRST(fil_system.sys_space->chain)->size
@@ -307,7 +302,6 @@ buf_dblwr_create()
307302

308303
/* Flush the modified pages to disk and make a checkpoint */
309304
log_make_checkpoint();
310-
buf_dblwr_being_created = FALSE;
311305

312306
/* Remove doublewrite pages from LRU */
313307
buf_pool_invalidate();

storage/innobase/include/buf0dblwr.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ Created 2011/12/19 Inaam Rana
3434

3535
/** Doublewrite system */
3636
extern buf_dblwr_t* buf_dblwr;
37-
/** Set to TRUE when the doublewrite buffer is being created */
38-
extern ibool buf_dblwr_being_created;
3937

4038
/** Create the doublewrite buffer if the doublewrite buffer header
4139
is not present in the TRX_SYS page.

0 commit comments

Comments
 (0)