summaryrefslogtreecommitdiff
path: root/source3/lib/ctdbd_conn.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2017-06-01 17:55:06 +0200
committerRalph Boehme <slow@samba.org>2017-07-25 17:43:18 +0200
commit3ee2e53b040dc0a3e8b03f01530b442090acc2da (patch)
tree4c1427c490d7bf01a677d75747ce3ae0f85927f5 /source3/lib/ctdbd_conn.c
parentdb84e7a27790f688dbb9d325622761fbf25b0646 (diff)
downloadsamba-3ee2e53b040dc0a3e8b03f01530b442090acc2da.tar.gz
ctdbd_conn: Pass "ev" through ctdb_handle_message
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/lib/ctdbd_conn.c')
-rw-r--r--source3/lib/ctdbd_conn.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index 633c5e1db95..17658f4c7e7 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -574,7 +574,8 @@ int ctdbd_conn_get_fd(struct ctdbd_connection *conn)
/*
* Packet handler to receive and handle a ctdb message
*/
-static int ctdb_handle_message(struct ctdbd_connection *conn,
+static int ctdb_handle_message(struct tevent_context *ev,
+ struct ctdbd_connection *conn,
struct ctdb_req_header *hdr)
{
struct ctdb_req_message_old *msg;
@@ -587,7 +588,7 @@ static int ctdb_handle_message(struct ctdbd_connection *conn,
msg = (struct ctdb_req_message_old *)hdr;
- ctdbd_msg_call_back(NULL, conn, msg);
+ ctdbd_msg_call_back(ev, conn, msg);
return 0;
}
@@ -603,7 +604,7 @@ void ctdbd_socket_readable(struct ctdbd_connection *conn)
cluster_fatal("ctdbd died\n");
}
- ret = ctdb_handle_message(conn, hdr);
+ ret = ctdb_handle_message(NULL, conn, hdr);
TALLOC_FREE(hdr);