[#1175] object/put: Perform additional container broadcast of LOCKs
`LOCK` objects should be broadcast across container like `TOMBSTONE` ones. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
323dea95c6
commit
ebd84f6dd4
1 changed files with 3 additions and 2 deletions
|
@ -162,8 +162,9 @@ func (p *Streamer) newCommonTarget(prm *PutInitPrm) transformer.ObjectTarget {
|
|||
}
|
||||
|
||||
// enable additional container broadcast on non-local operation
|
||||
// if object has TOMBSTONE type.
|
||||
withBroadcast := !prm.common.LocalOnly() && prm.hdr.Type() == object.TypeTombstone
|
||||
// if object has TOMBSTONE or LOCK type.
|
||||
typ := prm.hdr.Type()
|
||||
withBroadcast := !prm.common.LocalOnly() && (typ == object.TypeTombstone || typ == object.TypeLock)
|
||||
|
||||
return &distributedTarget{
|
||||
traversal: traversal{
|
||||
|
|
Loading…
Reference in a new issue