From mboxrd@z Thu Jan 1 00:00:00 1970 From: lhh@sourceware.org Date: 1 Feb 2008 17:21:24 -0000 Subject: [Cluster-devel] cluster/rgmanager/src/daemons rg_state.c Message-ID: <20080201172124.22895.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- 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; }