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

[Cluster-devel] cluster/group/daemon app.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland sourceware org	2006-07-19 19:45:53

Modified files:
	group/daemon   : app.c 

Log message:
	needed _safe version of list_for_each_entry when moving entries

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/app.c.diff?cvsroot=cluster&r1=1.37&r2=1.38

--- cluster/group/daemon/app.c	2006/07/17 18:22:57	1.37
+++ cluster/group/daemon/app.c	2006/07/19 19:45:53	1.38
@@ -1298,7 +1298,7 @@
 	app_t *a = g->app;
 	event_t *ev, *rev;
 	node_t *node;
-	struct nodeid *id;
+	struct nodeid *id, *safe;
 
 	ev = a->current_event;
 	if (!ev)
@@ -1335,7 +1335,7 @@
 		log_group(g, "extend active rev %d with failed node %d",
 			  ev->nodeid, rev->nodeid);
 
-		list_for_each_entry(id, &rev->extended, list) {
+		list_for_each_entry_safe(id, safe, &rev->extended, list) {
 			list_del(&id->list);
 			list_add(&id->list, &ev->extended);
 			log_group(g, "extend active rev %d with failed node %d",


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