Rev 636: avoid using connected nodes that aren't in the vnn map yet in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Fri Sep 21 05:44:14 GMT 2007


------------------------------------------------------------
revno: 636
revision-id: tridge at samba.org-20070921054413-vqg3zm4yrdhcttwx
parent: tridge at samba.org-20070921053211-23en083ghhm03yib
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Fri 2007-09-21 15:44:13 +1000
message:
  avoid using connected nodes that aren't in the vnn map yet
modified:
  server/ctdb_persistent.c       ctdb_persistent.c-20070920053845-u2ggm5relkdor3xg-1
=== modified file 'server/ctdb_persistent.c'
--- a/server/ctdb_persistent.c	2007-09-21 05:19:33 +0000
+++ b/server/ctdb_persistent.c	2007-09-21 05:44:13 +0000
@@ -90,8 +90,8 @@
 	state->ctdb = ctdb;
 	state->c    = talloc_steal(state, c);
 
-	for (i=0;i<ctdb->num_nodes;i++) {
-		struct ctdb_node *node = ctdb->nodes[i];
+	for (i=0;i<ctdb->vnn_map->size;i++) {
+		struct ctdb_node *node = ctdb->nodes[ctdb->vnn_map->map[i]];
 		int ret;
 
 		/* only send to active nodes */



More information about the samba-cvs mailing list