Rev 304: fixed a fd close error on reconnect in
http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Tue May 15 00:33:28 GMT 2007
------------------------------------------------------------
revno: 304
revision-id: tridge at samba.org-20070515003328-ogsyrb3gnoyicfud
parent: tridge at samba.org-20070515001716-tndy0z6bafkvdc3v
committer: Andrew Tridgell <tridge at samba.org>
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);
}
More information about the samba-cvs
mailing list