Failover requests the Seesaw Engine to relinquish master state.
(ctx *ipc.Context, reply *int)
| 72 | |
| 73 | // Failover requests the Seesaw Engine to relinquish master state. |
| 74 | func (s *SeesawEngine) Failover(ctx *ipc.Context, reply *int) error { |
| 75 | s.trace("Failover", ctx) |
| 76 | if ctx == nil { |
| 77 | return errContext |
| 78 | } |
| 79 | |
| 80 | if !ctx.CanWrite() { |
| 81 | return errAccess |
| 82 | } |
| 83 | |
| 84 | return s.engine.haManager.requestFailover(false) |
| 85 | } |
| 86 | |
| 87 | // HAConfig returns the high-availability configuration for this node as |
| 88 | // determined by the engine. |
nothing calls this directly
no test coverage detected