]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
avoid using connected nodes that aren't in the vnn map yet
authorAndrew Tridgell <tridge@samba.org>
Fri, 21 Sep 2007 05:44:13 +0000 (15:44 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 21 Sep 2007 05:44:13 +0000 (15:44 +1000)
(This used to be ctdb commit 2b5ae133f5f6fa9ad1a8896fe4b4c542d4ca462d)

ctdb/server/ctdb_persistent.c

index 20c1784c19d22dc80a65a5dedee47efd260e20c3..00f20e017740790d1f6d6af48c9bb108b65f6ce4 100644 (file)
@@ -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;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 */