summaryrefslogtreecommitdiff
path: root/storage/xtradb/buf/buf0flu.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb/buf/buf0flu.c')
-rw-r--r--storage/xtradb/buf/buf0flu.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/storage/xtradb/buf/buf0flu.c b/storage/xtradb/buf/buf0flu.c
index 663e2d8f537..9452b53df38 100644
--- a/storage/xtradb/buf/buf0flu.c
+++ b/storage/xtradb/buf/buf0flu.c
@@ -459,7 +459,7 @@ buf_flush_ready_for_replace(
if (UNIV_LIKELY(bpage->in_LRU_list && buf_page_in_file(bpage))) {
- return((bpage->oldest_modification == 0 || bpage->space_was_being_deleted)
+ return(bpage->oldest_modification == 0
&& buf_page_get_io_fix(bpage) == BUF_IO_NONE
&& bpage->buf_fix_count == 0);
}
@@ -501,13 +501,6 @@ buf_flush_ready_for_flush(
&& buf_page_get_io_fix(bpage) == BUF_IO_NONE) {
ut_ad(bpage->in_flush_list);
- if (bpage->space_was_being_deleted) {
- /* should be removed from flush_list here */
- /* because buf_flush_try_neighbors() cannot flush without fil_space_get_size(space) */
- buf_flush_remove(bpage);
- return(FALSE);
- }
-
if (flush_type != BUF_FLUSH_LRU) {
return(TRUE);