forked from TrueCloudLab/frostfs-s3-gw
[#520] Fix saving two lock types simultaneously
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
87d19f09f7
commit
d8ab1b4799
1 changed files with 2 additions and 1 deletions
|
@ -907,7 +907,8 @@ func (c *TreeClient) PutLock(ctx context.Context, cnrID *cid.ID, nodeID uint64,
|
||||||
|
|
||||||
if lock.LegalHoldOID != nil {
|
if lock.LegalHoldOID != nil {
|
||||||
meta[legalHoldOIDKV] = lock.LegalHoldOID.EncodeToString()
|
meta[legalHoldOIDKV] = lock.LegalHoldOID.EncodeToString()
|
||||||
} else if lock.RetentionOID != nil {
|
}
|
||||||
|
if lock.RetentionOID != nil {
|
||||||
meta[retentionOIDKV] = lock.RetentionOID.EncodeToString()
|
meta[retentionOIDKV] = lock.RetentionOID.EncodeToString()
|
||||||
meta[untilDateKV] = lock.UntilDate
|
meta[untilDateKV] = lock.UntilDate
|
||||||
if lock.IsCompliance {
|
if lock.IsCompliance {
|
||||||
|
|
Loading…
Reference in a new issue