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)
| 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. |
| 130 | func 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. |
| 135 | func DowngradeNodeWithDetails(meta Meta, node *util.PegasusNode) ([]*base.Gpid, error) { |