mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 13:10:22 +03:00
loginServer should be a member of lockServer (#3441)
Add a unit test to catch a missing LoginHandler method in lockServer.
This commit is contained in:
committed by
Harshavardhana
parent
f53fcdf10e
commit
29d72b84c0
@@ -34,7 +34,6 @@ const lockCheckValidityInterval = 2 * time.Minute
|
||||
// LockArgs besides lock name, holds Token and Timestamp for session
|
||||
// authentication and validation server restart.
|
||||
type LockArgs struct {
|
||||
loginServer
|
||||
Name string
|
||||
Token string
|
||||
Timestamp time.Time
|
||||
@@ -70,6 +69,7 @@ func isWriteLock(lri []lockRequesterInfo) bool {
|
||||
|
||||
// lockServer is type for RPC handlers
|
||||
type lockServer struct {
|
||||
loginServer
|
||||
rpcPath string
|
||||
mutex sync.Mutex
|
||||
lockMap map[string][]lockRequesterInfo
|
||||
|
||||
Reference in New Issue
Block a user