shell: only one shell is allowed to connect to the cluster

fix https://github.com/chrislusf/seaweedfs/issues/1266
This commit is contained in:
Chris Lu
2020-04-12 17:48:39 -07:00
parent 65919d971d
commit 5361f999ed
2 changed files with 15 additions and 0 deletions

View File

@@ -64,6 +64,8 @@ type MasterServer struct {
grpcDialOption grpc.DialOption
MasterClient *wdclient.MasterClient
currentAdminShellClient string
}
func NewMasterServer(r *mux.Router, option *MasterOption, peers []string) *MasterServer {