[#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>
This commit is contained in:
parent
a433f9dd85
commit
3692032e30
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue