From d256cf4edfb9274c8780938462edeff55ce1d9de Mon Sep 17 00:00:00 2001 From: Anton Ivashkin Date: Tue, 18 May 2021 17:41:09 +0300 Subject: [PATCH] Fix PVS check (Two or more case-branches perform the same actions) --- src/Storages/MergeTree/IMergeTreeDataPart.cpp | 4 ---- 1 file changed, 4 deletions(-) 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;