Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Storages/StorageMergeTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ void StorageMergeTree::shutdown(bool)

if (deduplication_log)
deduplication_log->shutdown();

{
std::lock_guard lock(export_manifests_mutex);
export_manifests.clear();
}
}


Expand Down
11 changes: 11 additions & 0 deletions src/Storages/StorageReplicatedMergeTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6014,6 +6014,17 @@ void StorageReplicatedMergeTree::shutdown(bool)
/// Wait for all of them
std::lock_guard lock(data_parts_exchange_ptr->rwlock);
}

{
std::lock_guard lock(export_merge_tree_partition_mutex);
export_merge_tree_partition_task_entries.clear();
}

{
std::lock_guard lock(export_manifests_mutex);
export_manifests.clear();
}

LOG_TRACE(log, "Shutdown finished");
}

Expand Down
Loading