mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 16:23:28 +03:00
fix: export prometheus metrics for cache GC triggers (#9815)
Bonus change to use channel to serialize triggers, instead of using atomic variables. More efficient mechanism for synchronization.
This commit is contained in:
+1
-1
@@ -1608,7 +1608,7 @@ func (z *xlZones) getZoneAndSet(id string) (int, int, error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0, 0, fmt.Errorf("ID(%s) %w", errDiskNotFound)
|
||||
return 0, 0, fmt.Errorf("DiskID(%s) %w", id, errDiskNotFound)
|
||||
}
|
||||
|
||||
// IsReady - Returns true all the erasure sets are writable.
|
||||
|
||||
Reference in New Issue
Block a user