summaryrefslogtreecommitdiff
path: root/ctdb/tcp
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie>2007-09-04 09:50:07 +1000
committerRonnie Sahlberg <sahlberg@ronnie>2007-09-04 09:50:07 +1000
commit12ebb74838ded09420f087e555c6efffef6db98b (patch)
tree4b1bd79fdf4c224594995734e3e4777abea44f27 /ctdb/tcp
parent4495dbacecf7363bf79f8bac525c3e5431f16643 (diff)
downloadsamba-12ebb74838ded09420f087e555c6efffef6db98b.tar.gz
change how we do public addresses and takeover so that we can have
multiple public addresses spread across multiple interfaces on each node. this is a massive patch since we have previously made the assumtion that we only have one public address per node. get rid of the public_interface argument. the public addresses file now explicitely lists which interface the address belongs to (This used to be ctdb commit 462ebbc791e906a6b874c862defea43235597ca8)
Diffstat (limited to 'ctdb/tcp')
-rw-r--r--ctdb/tcp/tcp_connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c
index 2f828e57174..0b0f35abb13 100644
--- a/ctdb/tcp/tcp_connect.c
+++ b/ctdb/tcp/tcp_connect.c
@@ -286,7 +286,7 @@ static int ctdb_tcp_listen_automatic(struct ctdb_context *ctdb)
ctdb->name = talloc_asprintf(ctdb, "%s:%u",
ctdb->address.address,
ctdb->address.port);
- ctdb->vnn = ctdb->nodes[i]->vnn;
+ ctdb->vnn = ctdb->nodes[i]->pnn;
ctdb->nodes[i]->flags &= ~NODE_FLAGS_DISCONNECTED;
DEBUG(1,("ctdb chose network address %s:%u vnn %u\n",
ctdb->address.address,