[#250] service/policer: Don't shrink node list at unknown error

Every unknown error must not decrease shortage counter and must not
exclude faulty node from the node list, because this list will be used
later for replication.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-14 21:03:21 +03:00 committed by Stanislav Bogatyrev
parent 7daf3727ee
commit bbe700fa37

View file

@ -85,6 +85,8 @@ func (p *Policer) processNodes(ctx context.Context, addr *object.Address, nodes
log.Error("could not receive object header", log.Error("could not receive object header",
zap.String("error", err.Error()), zap.String("error", err.Error()),
) )
continue
} }
} else { } else {
shortage-- shortage--