Reset resets all the masters with matching name. The pattern argument is a glob-style pattern. The reset process clears any previous state in a master (including a failover in progress), and removes every replica and sentinel already discovered and associated with the master.
(ctx context.Context, pattern string)
| 760 | // (including a failover in progress), and removes every replica and sentinel |
| 761 | // already discovered and associated with the master. |
| 762 | func (c *SentinelClient) Reset(ctx context.Context, pattern string) *IntCmd { |
| 763 | cmd := NewIntCmd(ctx, "sentinel", "reset", pattern) |
| 764 | _ = c.Process(ctx, cmd) |
| 765 | return cmd |
| 766 | } |
| 767 | |
| 768 | // FlushConfig forces Sentinel to rewrite its configuration on disk, including |
| 769 | // the current Sentinel state. |