mirror of
https://github.com/minio/minio.git
synced 2026-11-25 07:21:49 +00:00
fix: use unused cacheMetrics code in prometheus (#9588)
remove all other unusued/deadcode
This commit is contained in:
1 parent
2ecf5ba1de
commit
6ac48a65cb
19 files changed
+4
-195
No files matched your search
@@ -113,25 +113,6 @@ func isEndpointConnected(diskMap map[string]StorageAPI, endpoint string) bool {
|
||||
return disk.IsOnline()
|
||||
}
|
||||
|
||||
func (s *xlSets) getOnlineDisksCount() int {
|
||||
s.xlDisksMu.RLock()
|
||||
defer s.xlDisksMu.RUnlock()
|
||||
count := 0
|
||||
for i := 0; i < s.setCount; i++ {
|
||||
for j := 0; j < s.drivesPerSet; j++ {
|
||||
disk := s.xlDisks[i][j]
|
||||
if disk == nil {
|
||||
continue
|
||||
}
|
||||
if !disk.IsOnline() {
|
||||
continue
|
||||
}
|
||||
count++
|
||||
}
|
||||
}
|
||||
return count
|
||||
}
|
||||
|
||||
func (s *xlSets) getDiskMap() map[string]StorageAPI {
|
||||
diskMap := make(map[string]StorageAPI)
|
||||
|
||||
|
||||
Reference in new issue
Block a user