mirror of
https://github.com/minio/minio.git
synced 2026-11-28 15:31:49 +00:00
Cleanup and make a safer code (#5794)
This commit is contained in:
1 parent
76cc65531c
commit
954142a98f
5 files changed
+27
-18
No files matched your search
@@ -17,7 +17,6 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -66,9 +65,3 @@ type OpsLockState struct {
|
||||
Status statusType `json:"status"` // Status can be Running/Ready/Blocked.
|
||||
Since time.Time `json:"since"` // Time when the lock was initially held.
|
||||
}
|
||||
|
||||
// listLocksInfo - Fetches locks held on bucket, matching prefix held for longer than duration.
|
||||
func listLocksInfo(bucket, prefix string, duration time.Duration) []VolumeLockInfo {
|
||||
locksInfo, _ := newObjectLayerFn().ListLocks(context.Background(), bucket, prefix, duration)
|
||||
return locksInfo
|
||||
}
|
||||
Reference in new issue
Block a user