Skip to content
Permalink
Browse files
MDEV-21174 fixup: Remove buf_dblwr_being_created
  • Loading branch information
dr-m committed Sep 30, 2020
1 parent 8bc4ebe commit c7399db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
@@ -39,9 +39,6 @@ using st_::span;
/** The doublewrite buffer */
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

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

start_again:
mtr.start();
buf_dblwr_being_created = TRUE;

buf_block_t *trx_sys_block = buf_dblwr_trx_sys_get(&mtr);

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

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

/* Flush the modified pages to disk and make a checkpoint */
log_make_checkpoint();
buf_dblwr_being_created = FALSE;

/* Remove doublewrite pages from LRU */
buf_pool_invalidate();
@@ -34,8 +34,6 @@ Created 2011/12/19 Inaam Rana

/** Doublewrite system */
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
is not present in the TRX_SYS page.

0 comments on commit c7399db

Please sign in to comment.