Skip to contentSkip to conversation

cluster/rgmanager event-script.txt

Cluster-devel [email protected] 1 participant 1 message Dec 18, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: lhh at sourceware.org 2007-12-18 18:24:44

Modified files:
rgmanager : event-script.txt

Log message:
Add undocumented shuffle function to event-script.txt

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/event-script.txt.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.1&r2=1.1.2.2

rgmanager/event-script.txt +5 -0
@@ -163,6 +163,11 @@
 	all_nodes = nodes_online();
 	allowed_nodes = subtract(nodes_online, node_to_avoid);
 
+  node_list = shuffle(node_list_old);
+
+	Rearranges the contents of node_list_old randomly and returns a
+	new node list.
+
 Utility functions - Logging:
 
   debug(item1, item2, ...);	LOG_DEBUG level