diff --git a/src/Storages/MergeTree/IMergeTreeDataPart.cpp b/src/Storages/MergeTree/IMergeTreeDataPart.cpp index b9ece92e1fc..707f1d9a851 100644 --- a/src/Storages/MergeTree/IMergeTreeDataPart.cpp +++ b/src/Storages/MergeTree/IMergeTreeDataPart.cpp @@ -187,8 +187,6 @@ static void incrementStateMetric(IMergeTreeDataPart::State state) CurrentMetrics::add(CurrentMetrics::PartsDeleting); return; case IMergeTreeDataPart::State::DeleteOnDestroy: - CurrentMetrics::add(CurrentMetrics::PartsDeleteOnDestroy); - return; case IMergeTreeDataPart::State::DeleteOnDestroyKeepS3: CurrentMetrics::add(CurrentMetrics::PartsDeleteOnDestroy); return; @@ -215,8 +213,6 @@ static void decrementStateMetric(IMergeTreeDataPart::State state) CurrentMetrics::sub(CurrentMetrics::PartsDeleting); return; case IMergeTreeDataPart::State::DeleteOnDestroy: - CurrentMetrics::sub(CurrentMetrics::PartsDeleteOnDestroy); - return; case IMergeTreeDataPart::State::DeleteOnDestroyKeepS3: CurrentMetrics::sub(CurrentMetrics::PartsDeleteOnDestroy); return;