------------------------------------------------------------
revno: 304
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell <[EMAIL PROTECTED]>
branch nick: tridge
timestamp: Tue 2007-05-15 10:33:28 +1000
message:
fixed a fd close error on reconnect
modified:
tcp/tcp_connect.c tcp_connect.c-20061128004937-x70q1cu5xzg5g2tm-1
=== modified file 'tcp/tcp_connect.c'
--- a/tcp/tcp_connect.c 2007-05-14 23:42:52 +0000
+++ b/tcp/tcp_connect.c 2007-05-15 00:33:28 +0000
@@ -168,16 +168,6 @@
}
/*
- destroy a ctdb_incoming structure
-*/
-static int ctdb_incoming_destructor(struct ctdb_incoming *in)
-{
- close(in->fd);
- in->fd = -1;
- return 0;
-}
-
-/*
called when we get contacted by another node
currently makes no attempt to check if the connection is really from a ctdb
node in our cluster
@@ -207,8 +197,6 @@
in->queue = ctdb_queue_setup(ctdb, in, in->fd, CTDB_TCP_ALIGNMENT,
ctdb_tcp_read_cb, in);
-
- talloc_set_destructor(in, ctdb_incoming_destructor);
}