mirror of
https://github.com/minio/minio.git
synced 2025-03-30 17:23:42 -04:00
Removing a channel that was not being used (#19948)
This commit is contained in:
parent
d2fb371f80
commit
9ba39d7fad
@ -36,7 +36,6 @@ import (
|
|||||||
"github.com/minio/minio-go/v7/pkg/set"
|
"github.com/minio/minio-go/v7/pkg/set"
|
||||||
"github.com/minio/minio-go/v7/pkg/tags"
|
"github.com/minio/minio-go/v7/pkg/tags"
|
||||||
"github.com/minio/minio/internal/dsync"
|
"github.com/minio/minio/internal/dsync"
|
||||||
xioutil "github.com/minio/minio/internal/ioutil"
|
|
||||||
"github.com/minio/minio/internal/logger"
|
"github.com/minio/minio/internal/logger"
|
||||||
"github.com/minio/pkg/v3/console"
|
"github.com/minio/pkg/v3/console"
|
||||||
"github.com/minio/pkg/v3/sync/errgroup"
|
"github.com/minio/pkg/v3/sync/errgroup"
|
||||||
@ -80,10 +79,6 @@ type erasureSets struct {
|
|||||||
|
|
||||||
poolIndex int
|
poolIndex int
|
||||||
|
|
||||||
// A channel to send the set index to the MRF when
|
|
||||||
// any disk belonging to that set is connected
|
|
||||||
setReconnectEvent chan int
|
|
||||||
|
|
||||||
// Distribution algorithm of choice.
|
// Distribution algorithm of choice.
|
||||||
distributionAlgo string
|
distributionAlgo string
|
||||||
deploymentID [16]byte
|
deploymentID [16]byte
|
||||||
@ -380,7 +375,6 @@ func newErasureSets(ctx context.Context, endpoints PoolEndpoints, storageDisks [
|
|||||||
setDriveCount: setDriveCount,
|
setDriveCount: setDriveCount,
|
||||||
defaultParityCount: defaultParityCount,
|
defaultParityCount: defaultParityCount,
|
||||||
format: format,
|
format: format,
|
||||||
setReconnectEvent: make(chan int),
|
|
||||||
distributionAlgo: format.Erasure.DistributionAlgo,
|
distributionAlgo: format.Erasure.DistributionAlgo,
|
||||||
deploymentID: uuid.MustParse(format.ID),
|
deploymentID: uuid.MustParse(format.ID),
|
||||||
poolIndex: poolIdx,
|
poolIndex: poolIdx,
|
||||||
@ -662,14 +656,6 @@ func (s *erasureSets) Shutdown(ctx context.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
select {
|
|
||||||
case _, ok := <-s.setReconnectEvent:
|
|
||||||
if ok {
|
|
||||||
xioutil.SafeClose(s.setReconnectEvent)
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
xioutil.SafeClose(s.setReconnectEvent)
|
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user