mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 23:49:23 +08:00
fix panic 5435 (#5436)
This commit is contained in:

committed by
GitHub

parent
6aa804b368
commit
df40908e57
@@ -97,6 +97,9 @@ func (ms *MasterServer) Assign(ctx context.Context, req *master_pb.AssignRequest
|
||||
continue
|
||||
}
|
||||
dn := dnList.Head()
|
||||
if dn == nil {
|
||||
continue
|
||||
}
|
||||
var replicas []*master_pb.Location
|
||||
for _, r := range dnList.Rest() {
|
||||
replicas = append(replicas, &master_pb.Location{
|
||||
|
Reference in New Issue
Block a user