frostfsid: Add GetGroupByName method #76
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-contract#76
Loading…
Reference in a new issue
No description provided.
Delete branch "mbiryukova/frostfs-contract:feature/get_group_by_name"
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?
e2b179d31b
to55a4163951
@ -586,2 +586,4 @@
}
func GetGroupByName(ns, name string) Group {
groupID := GetGroupIDByName(ns, name)
Wanted to mention that this way we call
GetReadOnlyContext
twice.But then realized that CALL opcode seems to be even more expensive than this interop (1<<4 vs 1<<9).
What is the motivation, though? We have
GetGroupByName
,GetGroup
andGetGroudIDByName
. The first seems to be a composition of the second and the third. Do we need this as a single method in contract? Is doesn't seem hard to make a client wrapper. My concern is contract size (frostfs-adm packs multiple contracts in a single transaction) and the interface we need to support in future.cc @alexvanin
The initial motivation was reducing number of contract invocations. So we have got
GetSubjectByName
first, now we make contract more consistent. But probably we can form two contract invocation in one transaction on client