netmap: Return node netmap state directly #264
No reviewers
TrueCloudLab/storage-core-developers
TrueCloudLab/storage-services-developers
TrueCloudLab/storage-services-committers
Labels
No labels
P0
P1
P2
P3
good first issue
pool
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-sdk-go#264
Loading…
Reference in a new issue
No description provided.
Delete branch "a-savchuk/frostfs-sdk-go:netmap-state"
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 #217
Signed-off-by: Aleksey Savchuk a.savchuk@yadro.com
WIP: netmap: Return node netmap state directlyto netmap: Return node netmap state directly@ -471,2 +473,4 @@
//
// See also SetOffline.
//
// Deprecated: use Status instead.
This methods (
IsOnline
,IsOffline
...) should be moved tonetmap.NodeState
For this to work, we need to define and enum here, which is a good thing anyway.
3b25f94237
to44ea6310dc
@ -470,4 +506,0 @@
// mean online).
//
// See also SetOffline.
func (x NodeInfo) IsOffline() bool {
Why not deprecate it first?
Done
@ -479,4 +508,2 @@
// action is interpreted as an intention to enter the network.
//
// See also IsOnline.
func (x *NodeInfo) SetOnline() {
Let's also add
SetStatus
and deprecate theseSetOnline
/SetOffline
Done
44ea6310dc
to04f30c3df4
netmap: Return node netmap state directlyto WIP: netmap: Return node netmap state directly04f30c3df4
to1045109782
WIP: netmap: Return node netmap state directlyto netmap: Return node netmap state directly