Skip to content

Commit

Permalink
[#2260] services/object: Broadcast linking objects
Browse files Browse the repository at this point in the history
Speed up big object construction in some cases.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
  • Loading branch information
fyrchik committed Feb 17, 2023
1 parent 7b47d11 commit 9cc9f6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/services/object/put/distributed.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ func (t *distributedTarget) Close() (*transformer.AccessIdentifiers, error) {
return nil, fmt.Errorf("(%T) could not validate payload content: %w", t, err)
}

if len(t.obj.Children()) > 0 {
// enabling extra broadcast for linking objects
t.traversal.extraBroadcastEnabled = true
}

return t.iteratePlacement(t.sendObject)
}

Expand Down

0 comments on commit 9cc9f6d

Please sign in to comment.