Skip to content

Commit db70702

Browse files
committed
fix(shard-distributor): inverted condition in shard stats cleanup loop
Signed-off-by: Andreas Holt <[email protected]>
1 parent 9546f24 commit db70702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/sharddistributor/leader/process/processor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func (p *namespaceProcessor) runShardStatsCleanupLoop(ctx context.Context) {
240240
continue
241241
}
242242
staleShardStats := p.identifyStaleShardStats(namespaceState)
243-
if len(staleShardStats) > 0 {
243+
if len(staleShardStats) == 0 {
244244
// No stale shard stats to delete
245245
continue
246246
}

0 commit comments

Comments
 (0)