Fix/Broadcast link objects #57

Merged
carpawell merged 1 commit from fix/link-obj-broadcast into master 2023-02-17 08:58:27 +00:00
2 changed files with 6 additions and 0 deletions

View file

@ -13,6 +13,7 @@ Changelog for FrostFS Node
### Changed
- `common.PrintVerbose` prints via `cobra.Command.Printf` (#1962)
- Env prefix in configuration changed to `FROSTFS_*` (#43)
- Link object is broadcast throughout the whole container now (#57)
### Fixed
- Increase payload size metric on shards' `put` operation (#1794)

View file

@ -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)
}