mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
functional-tester/agent: remove invalid operation checks
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
2b9c810fa4
commit
9e28331961
@ -269,13 +269,6 @@ func (srv *Server) handleRestartEtcd() (*rpcpb.Response, error) {
|
||||
}
|
||||
|
||||
func (srv *Server) handleKillEtcd() (*rpcpb.Response, error) {
|
||||
if srv.last != rpcpb.Operation_InitialStartEtcd && srv.last != rpcpb.Operation_RestartEtcd {
|
||||
return &rpcpb.Response{
|
||||
Success: false,
|
||||
Status: fmt.Sprintf("%q is not valid; last server operation was %q", rpcpb.Operation_KillEtcd.String(), srv.last.String()),
|
||||
}, nil
|
||||
}
|
||||
|
||||
srv.stopProxy()
|
||||
|
||||
srv.logger.Info("killing etcd process", zap.String("signal", syscall.SIGTERM.String()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user