fix panic 5435 (#5436)

This commit is contained in:
Konstantin Lebedev
2024-03-29 04:17:59 +05:00
committed by GitHub
parent 6aa804b368
commit df40908e57
4 changed files with 10 additions and 2 deletions

View File

@@ -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{