forked from TrueCloudLab/frostfs-node
[#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,
|
traverseOpts = append(traverseOpts,
|
||||||
// set processing container
|
// set processing container
|
||||||
placement.ForContainer(cnr),
|
placement.ForContainer(cnr),
|
||||||
|
|
||||||
// set success count (1st incoming header)
|
// set success count (1st incoming header)
|
||||||
placement.SuccessAfter(1),
|
placement.SuccessAfter(1),
|
||||||
|
|
||||||
|
// set identifier of the processing object
|
||||||
|
placement.ForObject(prm.addr.GetObjectID()),
|
||||||
)
|
)
|
||||||
|
|
||||||
// create placement builder from network map
|
// create placement builder from network map
|
||||||
|
|
Loading…
Reference in a new issue