diff --git a/src/Storages/MergeTree/MergeTreeData.h b/src/Storages/MergeTree/MergeTreeData.h index 4c46980f333..41742a5b6a6 100644 --- a/src/Storages/MergeTree/MergeTreeData.h +++ b/src/Storages/MergeTree/MergeTreeData.h @@ -1464,7 +1464,7 @@ protected: /// This has to be "true" by default, because in case of empty table or absence of Outdated parts /// it is automatically finished. - bool outdated_data_parts_loading_finished TSA_GUARDED_BY(outdated_data_parts_mutex) = true; + std::atomic_bool outdated_data_parts_loading_finished = true; void loadOutdatedDataParts(bool is_async); void startOutdatedDataPartsLoadingTask();