MCPcopy Create free account
hub / github.com/apache/incubator-pegasus / DowngradeNode

Function DowngradeNode

admin-cli/client/migrate_node.go:130–132  ·  view source on GitHub ↗

DowngradeNode sets all secondaries from the specified node to inactive state. NOTE: this step requires that the node has no primary, otherwise error is returned.

(meta Meta, node *util.PegasusNode)

Source from the content-addressed store, hash-verified

128// DowngradeNode sets all secondaries from the specified node to inactive state.
129// NOTE: this step requires that the node has no primary, otherwise error is returned.
130func DowngradeNode(meta Meta, node *util.PegasusNode) error {
131 return downgradeNode(meta, node, nil)
132}
133
134// DowngradeNodeWithDetails is like DowngradeNode but also returns the partitions that were downgraded.
135func DowngradeNodeWithDetails(meta Meta, node *util.PegasusNode) ([]*base.Gpid, error) {

Callers 2

safelyDowngradeNodeFunction · 0.85

Calls 1

downgradeNodeFunction · 0.85

Tested by 2

safelyDowngradeNodeFunction · 0.68