From: Andrew Tridgell Date: Fri, 21 Sep 2007 05:44:13 +0000 (+1000) Subject: avoid using connected nodes that aren't in the vnn map yet X-Git-Tag: tevent-0.9.20~348^2~2395 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2607c222fc6c680841c90191f897e67b6c4c4245;p=thirdparty%2Fsamba.git avoid using connected nodes that aren't in the vnn map yet (This used to be ctdb commit 2b5ae133f5f6fa9ad1a8896fe4b4c542d4ca462d) --- diff --git a/ctdb/server/ctdb_persistent.c b/ctdb/server/ctdb_persistent.c index 20c1784c19d..00f20e01774 100644 --- a/ctdb/server/ctdb_persistent.c +++ b/ctdb/server/ctdb_persistent.c @@ -90,8 +90,8 @@ int32_t ctdb_control_persistent_store(struct ctdb_context *ctdb, state->ctdb = ctdb; state->c = talloc_steal(state, c); - for (i=0;inum_nodes;i++) { - struct ctdb_node *node = ctdb->nodes[i]; + for (i=0;ivnn_map->size;i++) { + struct ctdb_node *node = ctdb->nodes[ctdb->vnn_map->map[i]]; int ret; /* only send to active nodes */