Skip to contentSkip to conversation

rgmanager: Fix return code when relocation fails and svc is running on original node

PATCH New Ryan McCabe 2 participants 2 messages Jul 11, 2012 – Jul 13, 2012

lore
Share & tools
lore
#0 lore raw

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.

---
 rgmanager/src/daemons/rg_state.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rgmanager/src/daemons/rg_state.c +1 -1
index 4357d21..9000f1b 100644
@@ -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
#1 lore raw

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.

---
 rgmanager/src/daemons/rg_state.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rgmanager/src/daemons/rg_state.c +0 -0
index 4357d21..9000f1b 100644

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;
 		}
 	}
 

-- Lon