MCPcopy
hub / github.com/cubefs/cubefs / QueryDataNodeDecommissionProgress

Method QueryDataNodeDecommissionProgress

sdk/master/api_node.go:196–200  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

194}
195
196func (api *NodeAPI) QueryDataNodeDecommissionProgress(addr string) (progress *proto.DataDecommissionProgress, err error) {
197 progress = &proto.DataDecommissionProgress{}
198 err = api.mc.requestWith(progress, newRequest(post, proto.QueryDataNodeDecoProgress).Header(api.h).addParam("addr", addr))
199 return
200}
201
202func (api *NodeAPI) AddFlashNode(serverAddr, zoneName, version string) (id uint64, err error) {
203 request := newRequest(post, proto.FlashNodeAdd).Header(api.h).

Callers 1

Calls 4

requestWithMethod · 0.80
addParamMethod · 0.80
newRequestFunction · 0.70
HeaderMethod · 0.45

Tested by

no test coverage detected