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

[Cluster-devel] [PATCH] Only bump rg_thread refcount from rg_threads, not from node_event_threads



Fixes #194491
Index: ChangeLog
===================================================================
RCS file: /cvs/cluster/cluster/rgmanager/ChangeLog,v
retrieving revision 1.5.2.19
diff -u -r1.5.2.19 ChangeLog
--- ChangeLog	16 Jun 2006 20:11:33 -0000	1.5.2.19
+++ ChangeLog	21 Jun 2006 18:17:47 -0000
@@ -1,3 +1,7 @@
+2006-06-21 Lon Hohberger <lhh at redhat.com>
+	* src/daemons/nodeevent.c: Don't use the rg thread refcount in
+	node event handling (#194491)
+
 2006-06-16 Lon Hohberger <lhh at redhat.com>
 	* src/daemons/fo_domain.c, groups.c: Get rid of compiler warnings
 	* src/daemons/rg_state.c: Change clu_lock_verbose to use the NULL
Index: src/daemons/nodeevent.c
===================================================================
RCS file: /cvs/cluster/cluster/rgmanager/src/daemons/nodeevent.c,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 nodeevent.c
--- src/daemons/nodeevent.c	12 May 2006 21:28:31 -0000	1.1.2.1
+++ src/daemons/nodeevent.c	21 Jun 2006 18:17:48 -0000
@@ -60,7 +60,6 @@
 
 	/* Mutex held */
 	ne_thread = 0;
-	rg_dec_threads();
 	pthread_mutex_unlock(&ne_queue_mutex);
 	return NULL;
 }
@@ -96,8 +95,6 @@
 
 		pthread_create(&ne_thread, &attrs, node_event_thread, NULL);
         	pthread_attr_destroy(&attrs);
-
-		rg_inc_threads();
 	}
 	pthread_mutex_unlock (&ne_queue_mutex);
 }

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