diff --git a/storage/innobase/buf/buf0flu.cc b/storage/innobase/buf/buf0flu.cc index 1ddea7be89ea8..710507603615a 100644 --- a/storage/innobase/buf/buf0flu.cc +++ b/storage/innobase/buf/buf0flu.cc @@ -57,7 +57,7 @@ ulint buf_lru_freed_page_count; ulint buf_flush_page_count; /** Flag indicating if the page_cleaner is in active state. */ -bool buf_page_cleaner_is_active; +Atomic_relaxed buf_page_cleaner_is_active; /** Factor for scan length to determine n_pages for intended oldest LSN progress */ diff --git a/storage/innobase/include/buf0flu.h b/storage/innobase/include/buf0flu.h index eed2ecac70364..cd0d068abb05b 100644 --- a/storage/innobase/include/buf0flu.h +++ b/storage/innobase/include/buf0flu.h @@ -40,7 +40,7 @@ extern ulint buf_lru_flush_page_count; extern ulint buf_lru_freed_page_count; /** Flag indicating if the page_cleaner is in active state. */ -extern bool buf_page_cleaner_is_active; +extern Atomic_relaxed buf_page_cleaner_is_active; #ifdef UNIV_DEBUG