rgmanager: Fix return code when relocation fails and svc is running on original node
PATCH 1/1 rgmanager: Fix return code when relocation fails and svc is running on original node
Return RG_ERELO (Relocation failure; service running on original node) when relocation failed and the service was restarted successfully on the original node.
This is the behavior that's currently in the STABLE32 and RHEL6 branches.
Signed-off-by Ryan McCabe <[email protected]>
--- rgmanager/src/daemons/rg_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rgmanager/src/daemons/rg_state.c +1 -1
@@ -2061,7 +2061,7 @@ exhausted: svcName);if (svc_start (svcName,RG_START_RECOVER ) ==0 ) { *new_owner = me; -return 0 ; +return RG_ERELO ; } }
Signature · 1 line
1.7.10.4
PATCH 1/1 rgmanager: Fix return code when relocation fails and svc is running on original node
Quoted 17 lines · Ryan McCabe
Return
RG_ERELO(Relocation failure; service running on original node) when relocation failed and the service was restarted successfully on the original node.This is the behavior that's currently in the STABLE32 and RHEL6 branches.
Signed-off-by Ryan McCabe <[email protected]>--- rgmanager/src/daemons/rg_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)rgmanager/src/daemons/rg_state.c +0
-0
rgmanager/src/daemons/rg_state.c exhausted: · line 2067
Quoted 8 lines
rgmanager/src/daemons/rg_state.c +1
-1@@ -2061,7 +2061,7 @@ exhausted: svcName);if (svc_start (svcName,RG_START_RECOVER ) ==0 ) { *new_owner = me; -return 0 ; +return RG_ERELO ; } }
Reviewed-by Lon Hohberger <[email protected]>
-- Lon