add master side code for cluster wise exclusive lock

This commit is contained in:
Chris Lu
2020-04-23 01:55:44 -07:00
parent 369aa8a10a
commit 77873b832b
4 changed files with 549 additions and 151 deletions

View File

@@ -66,7 +66,8 @@ type MasterServer struct {
MasterClient *wdclient.MasterClient
currentAdminShellClient string
adminAccessSecret int64
adminAccessLockTime time.Time
}
func NewMasterServer(r *mux.Router, option *MasterOption, peers []string) *MasterServer {