@@ -781,7 +781,7 @@ func (c *BlocksCleaner) updateBucketMetrics(userID string, parquetEnabled bool,
781
781
}
782
782
783
783
func (c * BlocksCleaner ) cleanPartitionedGroupInfo (ctx context.Context , userBucket objstore.InstrumentedBucket , userLogger log.Logger , userID string ) {
784
- err , existentPartitionedGroupInfo := c .iterPartitionGroups (ctx , userBucket , userLogger )
784
+ existentPartitionedGroupInfo , err := c .iterPartitionGroups (ctx , userBucket , userLogger )
785
785
if err != nil {
786
786
level .Warn (userLogger ).Log ("msg" , "error return when going through partitioned group directory" , "err" , err )
787
787
}
@@ -820,7 +820,7 @@ func (c *BlocksCleaner) cleanPartitionedGroupInfo(ctx context.Context, userBucke
820
820
}
821
821
822
822
func (c * BlocksCleaner ) emitUserMetrics (ctx context.Context , userLogger log.Logger , userBucket objstore.InstrumentedBucket , userID string ) {
823
- err , existentPartitionedGroupInfo := c .iterPartitionGroups (ctx , userBucket , userLogger )
823
+ existentPartitionedGroupInfo , err := c .iterPartitionGroups (ctx , userBucket , userLogger )
824
824
if err != nil {
825
825
level .Warn (userLogger ).Log ("msg" , "error return when going through partitioned group directory" , "err" , err )
826
826
}
@@ -849,10 +849,10 @@ func (c *BlocksCleaner) emitUserMetrics(ctx context.Context, userLogger log.Logg
849
849
}
850
850
}
851
851
852
- func (c * BlocksCleaner ) iterPartitionGroups (ctx context.Context , userBucket objstore.InstrumentedBucket , userLogger log.Logger ) (error , map [* PartitionedGroupInfo ]struct {
852
+ func (c * BlocksCleaner ) iterPartitionGroups (ctx context.Context , userBucket objstore.InstrumentedBucket , userLogger log.Logger ) (map [* PartitionedGroupInfo ]struct {
853
853
path string
854
854
status PartitionedGroupStatus
855
- }) {
855
+ }, error ) {
856
856
existentPartitionedGroupInfo := make (map [* PartitionedGroupInfo ]struct {
857
857
path string
858
858
status PartitionedGroupStatus
@@ -878,7 +878,7 @@ func (c *BlocksCleaner) iterPartitionGroups(ctx context.Context, userBucket objs
878
878
}
879
879
return nil
880
880
})
881
- return err , existentPartitionedGroupInfo
881
+ return existentPartitionedGroupInfo , err
882
882
}
883
883
884
884
// cleanUserPartialBlocks delete partial blocks which are safe to be deleted. The provided partials map
0 commit comments