From 3692032e30f293e57a446b6723a387c307355739 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 24 Sep 2020 18:17:41 +0300 Subject: [PATCH] [#44] object/head: Fix incorrect placement traversal Add object identifier option to placement traverser of object.Head service. Signed-off-by: Leonard Lyubich --- pkg/services/object/head/distributed.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/services/object/head/distributed.go b/pkg/services/object/head/distributed.go index 0e241fe5..7d07dc07 100644 --- a/pkg/services/object/head/distributed.go +++ b/pkg/services/object/head/distributed.go @@ -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