mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fix PVS check (Two or more case-branches perform the same actions)
This commit is contained in:
parent
a37f3a1750
commit
d256cf4edf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user