Skip to contentSkip to conversation

cluster/rgmanager/src/daemons rg_state.c

Cluster-devel [email protected] 1 participant 1 message Feb 1, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: lhh at sourceware.org 2008-02-01 17:21:24

Modified files:
rgmanager/src/daemons: rg_state.c

Log message:
#400211 - make sure we release the lock

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/rg_state.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.24.2.19&r2=1.24.2.20

rgmanager/src/daemons/rg_state.c +1 -1
@@ -1299,10 +1299,10 @@
 		svcStatus.rs_state = newstate;
 
 		if (set_rg_state(svcName, &svcStatus) != 0) {
-			rg_unlock(&lockp);
 			clulog(LOG_ERR, "#52: Failed changing RG status\n");
 			return RG_EFAIL;
 		}
+		rg_unlock(&lockp);
 		return 0;
 	}