mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-08-28 03:46:24 +00:00
fix mount error aggregation scope
This commit is contained in:
@@ -137,7 +137,6 @@ func DistributeEcShards(volumeID uint32, collection string, targets []*worker_pb
|
||||
return nil, fmt.Errorf("no shard assignments found from planning phase")
|
||||
}
|
||||
|
||||
var mountErrors []error
|
||||
for destNode, assignedShards := range shardAssignment {
|
||||
withFields(log, map[string]interface{}{
|
||||
"destination": destNode,
|
||||
@@ -193,6 +192,7 @@ func MountEcShards(volumeID uint32, collection string, shardAssignment map[strin
|
||||
|
||||
log := ensureLogger(logger)
|
||||
|
||||
var mountErrors []error
|
||||
for destNode, assignedShards := range shardAssignment {
|
||||
var shardIds []uint32
|
||||
var metadataFiles []string
|
||||
|
||||
Reference in New Issue
Block a user