Skip to content

Commit

Permalink
DAOS-15946 control: Checker enablement misc fixes (#14700)
Browse files Browse the repository at this point in the history
Ignore NotReplica errors when checking if enabled.

Signed-off-by: Tom Nabarro <tom.nabarro@intel.com>
  • Loading branch information
tanabarr authored Jul 29, 2024
1 parent 87a2a86 commit 96a95b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/control/server/mgmt_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ func (svc *mgmtSvc) disableChecker() error {
func (svc *mgmtSvc) checkerIsEnabled() bool {
value, err := system.GetMgmtProperty(svc.sysdb, checkerEnabledKey)
if err != nil {
if !system.IsNotLeader(err) && !system.IsErrSystemAttrNotFound(err) {
if !system.IsNotLeader(err) && !system.IsErrSystemAttrNotFound(err) &&
!system.IsNotReplica(err) {
svc.log.Errorf("failed to get checker enabled value: %s", err)
}
return false
Expand Down

0 comments on commit 96a95b8

Please sign in to comment.