summaryrefslogtreecommitdiffstats
path: root/ctdb/common/ctdb_daemon.c
diff options
context:
space:
mode:
authorPeter Somogyi <psomogyi@gamax.hu>2007-04-20 14:26:19 +0200
committerPeter Somogyi <psomogyi@gamax.hu>2007-04-20 14:26:19 +0200
commite5f2e5e5eb56c390c68c1ac79a32fb068510fc41 (patch)
tree2051f1374b1a9743cbdd3643c84d6ee1d89ea376 /ctdb/common/ctdb_daemon.c
parentc950e5285830eb14f0fced820bbb2ad8927c5421 (diff)
downloadsamba-e5f2e5e5eb56c390c68c1ac79a32fb068510fc41.tar.gz
samba-e5f2e5e5eb56c390c68c1ac79a32fb068510fc41.tar.xz
samba-e5f2e5e5eb56c390c68c1ac79a32fb068510fc41.zip
- ctdb/ib minor bugfixes (error case)
- make ctdb capable of alternative connection (like ib) again, solved the fork problem - do_debug memory overwrite bugfix (occured using ibwrapper_test with wrong address given) (This used to be ctdb commit da0b84cda26d544f63841dfd770ed7ebad401944)
Diffstat (limited to 'ctdb/common/ctdb_daemon.c')
-rw-r--r--ctdb/common/ctdb_daemon.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ctdb/common/ctdb_daemon.c b/ctdb/common/ctdb_daemon.c
index 6c11c7b730..87539dc6c6 100644
--- a/ctdb/common/ctdb_daemon.c
+++ b/ctdb/common/ctdb_daemon.c
@@ -44,6 +44,11 @@ static void daemon_incoming_packet(void *, uint8_t *, uint32_t );
static void ctdb_main_loop(struct ctdb_context *ctdb)
{
+ /* we are the dispatcher process now, so start the protocol going */
+ if (ctdb_init_transport(ctdb)) {
+ exit(1);
+ }
+
ctdb->methods->start(ctdb);
/* go into a wait loop to allow other nodes to complete */
@@ -594,6 +599,12 @@ int ctdb_start(struct ctdb_context *ctdb)
close(fd[0]);
close(ctdb->daemon.sd);
ctdb->daemon.sd = -1;
+
+ /* Added because of ctdb->methods->allocate_pkt calls */
+ /* TODO: clean */
+ int ctdb_tcp_init(struct ctdb_context *ctdb);
+ ctdb_tcp_init(ctdb);
+
return 0;
}