Use LockPrm
and LockRes
to store Lock operation parameters and results #1556
No reviewers
TrueCloudLab/storage-core-committers
TrueCloudLab/storage-core-developers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1556
Loading…
Reference in a new issue
No description provided.
Delete branch "a-savchuk:add-lock-prm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #1421
Refactor
Lock
operation to useLockPrm
andLockRes
structures to store operation parameters and results, respectivelyLockPrm
to store Lock operation parameters 010eb7ec33LockPrm
to store Lock operation parameters c09fd4a66bLockPrm
to store Lock operation parameters@ -33,0 +45,4 @@
// SetTarget sets lock object ID and IDs of objects to be locked.
//
// The list of locked objects should be unique. Panics if the list is empty.
But there is no check if list is empty and no panic...
Three arguments is not so much. Moreover, in all functions, the first step is to expand the structure:
6f28a52e1a
tofb5c4b0ad3
@a-savchuk what is the motivation for this PR?
The initial motivation was to have a flag with a default value for the Lock and Inhume operations while working on #1445. The flag was meant to be used for writing tests those need to populate a metabase with locks of both old and new formats. Consider the following code snippet:
Discussed with @fyrchik IRL
Decided not to add expiration epoch check at all and make setting expiration epoch explicit with lock target
Pull request closed