mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fix: allow locker to be niladic
This commit is contained in:
parent
2760fc86af
commit
a3ba8188d7
@ -281,7 +281,7 @@ func lockMaintenance(ctx context.Context, interval time.Duration) error {
|
||||
// we only look for ownership of locks from endpoints
|
||||
// on first zone.
|
||||
for _, c := range allLockersFn() {
|
||||
if !c.IsOnline() {
|
||||
if !c.IsOnline() || c == nil {
|
||||
updateNlocks(nlripsMap, nlrip.name, nlrip.lri.Writer)
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user