Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LockEntries (0.63 sec)

  1. cmd/admin-handlers_test.go

    			}
    		}
    	}
    }
    
    type byResourceUID struct{ madmin.LockEntries }
    
    func (b byResourceUID) Less(i, j int) bool {
    	toUniqLock := func(entry madmin.LockEntry) string {
    		return fmt.Sprintf("%s/%s", entry.Resource, entry.ID)
    	}
    	return toUniqLock(b.LockEntries[i]) < toUniqLock(b.LockEntries[j])
    }
    
    func TestTopLockEntries(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    				}
    			}
    		}
    	}
    	var lockEntries madmin.LockEntries
    	for _, v := range entryMap {
    		if stale {
    			lockEntries = append(lockEntries, *v)
    			continue
    		}
    		if len(v.ServerList) >= v.Quorum {
    			lockEntries = append(lockEntries, *v)
    		}
    	}
    	sort.Sort(lockEntries)
    	return lockEntries
    }
    
    // PeerLocks holds server information result of one node
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top