Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for topLockEntries (0.15 sec)

  1. cmd/admin-handlers_test.go

    			}
    			for j := range e.ServerList {
    				if e.ServerList[j] != got[i].ServerList[j] {
    					return i, false
    				}
    			}
    		}
    		return 0, true
    	}
    
    	for i, tc := range testCases {
    		got := topLockEntries(tc.peerLocks, false)
    		if idx, ok := check(tc.expected, got); !ok {
    			t.Fatalf("%d: mismatch at %d \n expected %#v but got %#v", i, idx, tc.expected[idx], got[idx])
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    		Owner:      l.Owner,
    		ID:         l.UID,
    		Quorum:     l.Quorum,
    	}
    	if l.Writer {
    		entry.Type = "WRITE"
    	} else {
    		entry.Type = "READ"
    	}
    	return entry
    }
    
    func topLockEntries(peerLocks []*PeerLocks, stale bool) madmin.LockEntries {
    	now := time.Now().UTC()
    	entryMap := make(map[string]*madmin.LockEntry)
    	toEntry := func(lri lockRequesterInfo) string {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
Back to top