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

[Cluster-devel] cluster/gulm/src core_io.c core_nodelists.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	cfeist sourceware org	2007-03-14 19:40:38

Modified files:
	gulm/src       : core_io.c core_nodelists.c 

Log message:
	Make sure all gulm servers keep track of the other gulm servers/clients
	bz #183383

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gulm/src/core_io.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.9.2.9&r2=1.9.2.10
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gulm/src/core_nodelists.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.5.2.2&r2=1.5.2.3

--- cluster/gulm/src/Attic/core_io.c	2006/02/13 19:55:48	1.9.2.9
+++ cluster/gulm/src/Attic/core_io.c	2007/03/14 19:40:37	1.9.2.10
@@ -1024,6 +1024,7 @@
                   log_msg(lgm_Network,
                         "Found Master at %s, so I'm a Slave.\n",
                         MasterIN->name);
+                  update_mru_list();
                }
                send_core_state_to_children();
                /* TODO
--- cluster/gulm/src/Attic/core_nodelists.c	2006/02/13 19:55:48	1.5.2.2
+++ cluster/gulm/src/Attic/core_nodelists.c	2007/03/14 19:40:37	1.5.2.3
@@ -1102,4 +1102,19 @@
    return hash_walk(Nodes_by_Name, _inner_tag_for_lost, NULL);
 }
 
+int _update_mru_list(LLi_t *item, void *misc) {
+   Node_t *n;
+   n = LLi_data(item);
+
+   if (n->State == gio_Mbr_Logged_in) 
+      move_to_mru(n);
+   return 0;
+}
+
+void update_mru_list(void)
+{
+   hash_walk(Nodes_by_Name, _update_mru_list, NULL);
+   return;
+}
+
 /* vim: set ai cin et sw=3 ts=3 : */


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