[#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>
remotes/KirillovDenis/release/v0.21.1
Alex Vanin 2020-12-14 21:03:21 +03:00 committed by Stanislav Bogatyrev
parent 7daf3727ee
commit bbe700fa37
1 changed files with 2 additions and 0 deletions

View File

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