mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Don't send a canceled context to Unlock (#20409)
AFAICT we send a canceled context to unlock (and thereby releaseAll). This will cause network calls to fail. Instead use background and add 30s timeout.
This commit is contained in:
@@ -185,7 +185,7 @@ func (di *distLockInstance) Unlock(lc LockContext) {
|
||||
if lc.cancel != nil {
|
||||
lc.cancel()
|
||||
}
|
||||
di.rwMutex.Unlock(lc.ctx)
|
||||
di.rwMutex.Unlock(context.Background())
|
||||
}
|
||||
|
||||
// RLock - block until read lock is taken or timeout has occurred.
|
||||
|
||||
Reference in New Issue
Block a user