lib: Nobody sets ctdbd_connection->fde anymore, remove it
authorVolker Lendecke <vl@samba.org>
Tue, 24 Mar 2020 13:33:28 +0000 (14:33 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 28 Apr 2020 09:08:40 +0000 (09:08 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/ctdbd_conn.c

index 19182677985826440ea03e2ba0988dfa1c03ca02..442c665ef2923be5ff071c1b5b2720dfef49da70 100644 (file)
@@ -61,9 +61,6 @@ struct ctdbd_connection {
        int fd;
        int timeout;
 
-       /* For async connections, enabled via ctdbd_setup_fde() */
-       struct tevent_fd *fde;
-
        /* State to track in-progress read */
        struct ctdb_read_state {
                /* Receive buffer for the initial packet length */
@@ -93,7 +90,7 @@ struct ctdbd_connection {
 static bool ctdbd_conn_has_async_reqs(struct ctdbd_connection *conn)
 {
        size_t len = talloc_array_length(conn->pending);
-       return ((len != 0) || (conn->fde != NULL));
+       return (len != 0);
 }
 
 static uint32_t ctdbd_next_reqid(struct ctdbd_connection *conn)
@@ -1307,7 +1304,6 @@ struct ctdb_pkt_recv_state {
 
 static int ctdbd_connection_destructor(struct ctdbd_connection *c)
 {
-       TALLOC_FREE(c->fde);
        if (c->fd != -1) {
                close(c->fd);
                c->fd = -1;