mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
util: fix bug in health checker
This commit fixes a bug in health checker that caused shared checker to get keyed with volumeID+volumepath instead of just volumeID and the other way around for non-shared checkers. Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
@ -137,7 +137,8 @@ func (hcm *healthCheckManager) startStatChecker(volumeID, path string, shared bo
|
||||
// are key'd by theit volumeID+path.
|
||||
func (hcm *healthCheckManager) startChecker(cc ConditionChecker, volumeID, path string, shared bool) error {
|
||||
key := volumeID
|
||||
if shared {
|
||||
if !shared {
|
||||
// if it is non-shared checker, try to use the path as well.
|
||||
key = fallbackKey(volumeID, path)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user