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:
Harshavardhana
2020-06-15 09:05:35 -07:00
parent a1e6a3ef64
commit 49c8d36497
7 changed files with 134 additions and 60 deletions
+1 -1
View File
@@ -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.