[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/rgmanager/src/daemons rg_state.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	lhh 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

--- cluster/rgmanager/src/daemons/rg_state.c	2008/02/01 15:31:05	1.24.2.19
+++ cluster/rgmanager/src/daemons/rg_state.c	2008/02/01 17:21:23	1.24.2.20
@@ -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;
 	} 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]