[#44] object/head: Fix incorrect placement traversal

Add object identifier option to placement traverser of object.Head service.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2020-09-24 18:17:41 +03:00 committed by Alex Vanin
parent a433f9dd85
commit 3692032e30
1 changed files with 4 additions and 0 deletions

View File

@ -50,8 +50,12 @@ func (h *distributedHeader) prepare(ctx context.Context, prm *Prm) error {
traverseOpts = append(traverseOpts,
// set processing container
placement.ForContainer(cnr),
// set success count (1st incoming header)
placement.SuccessAfter(1),
// set identifier of the processing object
placement.ForObject(prm.addr.GetObjectID()),
)
// create placement builder from network map