diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-05-30 13:26:50 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2007-05-30 13:26:50 +1000 |
commit | 8ed48aac5100933d5f81836b3d33e646af7a3819 (patch) | |
tree | aa2a5b6e62c4fc0fdfdc973d0309a4b982b9e4d8 /ctdb/tcp | |
parent | 3eb96b4553a6cad3b317ab1bffd4779f747dd665 (diff) | |
download | samba-8ed48aac5100933d5f81836b3d33e646af7a3819.tar.gz samba-8ed48aac5100933d5f81836b3d33e646af7a3819.tar.xz samba-8ed48aac5100933d5f81836b3d33e646af7a3819.zip |
don't start the transport connecting to the other nodes until after the startup event script has run
(This used to be ctdb commit afca3cc74211aa2e18b1f74d36b2add8dffcfdc7)
Diffstat (limited to 'ctdb/tcp')
-rw-r--r-- | ctdb/tcp/tcp_init.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/ctdb/tcp/tcp_init.c b/ctdb/tcp/tcp_init.c index 35b43bd5e2..665336e947 100644 --- a/ctdb/tcp/tcp_init.c +++ b/ctdb/tcp/tcp_init.c @@ -46,9 +46,9 @@ static int ctdb_tcp_add_node(struct ctdb_node *node) } /* - start the protocol going + initialise transport structures */ -static int ctdb_tcp_start(struct ctdb_context *ctdb) +static int ctdb_tcp_initialise(struct ctdb_context *ctdb) { int i; @@ -59,6 +59,16 @@ static int ctdb_tcp_start(struct ctdb_context *ctdb) } } + return 0; +} + +/* + start the protocol going +*/ +static int ctdb_tcp_start(struct ctdb_context *ctdb) +{ + int i; + /* listen on our own address */ if (ctdb_tcp_listen(ctdb) != 0) return -1; @@ -90,6 +100,7 @@ static void *ctdb_tcp_allocate_pkt(TALLOC_CTX *mem_ctx, size_t size) static const struct ctdb_methods ctdb_tcp_methods = { + .initialise = ctdb_tcp_initialise, .start = ctdb_tcp_start, .queue_pkt = ctdb_tcp_queue_pkt, .add_node = ctdb_tcp_add_node, |