mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
Add support for timeouts for locks (#4377)
This commit is contained in:
@@ -35,6 +35,12 @@ func (ls *lockStat) lockGranted() {
|
||||
ls.granted++
|
||||
}
|
||||
|
||||
// lockTimedOut - updates lock stat when a lock is timed out.
|
||||
func (ls *lockStat) lockTimedOut() {
|
||||
ls.blocked--
|
||||
ls.total--
|
||||
}
|
||||
|
||||
// lockRemoved - updates lock stat when a lock is removed, by Unlock
|
||||
// or ForceUnlock.
|
||||
func (ls *lockStat) lockRemoved(granted bool) {
|
||||
|
||||
Reference in New Issue
Block a user