Ensure all services disabled when node is failed

Ensure all services are disabled when the active controller is failed
during a failover.

Partial-Bug: 1815969

Change-Id: Ieebcdc7b8a98be98c7d64c02c5934e523cc294e8
Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
Bin Qian 2019-06-21 09:35:53 -04:00
parent 660e06a982
commit f4be3908c3
1 changed files with 4 additions and 0 deletions

View File

@ -626,6 +626,10 @@ SmErrorT sm_failover_fail_self()
DPRINTFE("Failed to set %s failed, error %s.", _host_name, sm_error_str(error));
return SM_FAILED;
}
char controller_domain[] = "controller";
sm_service_domain_utils_service_domain_disable_self(controller_domain);
return SM_OKAY;
}
// ****************************************************************************