summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_call.c
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2017-04-21 17:18:49 +1000
committerAmitay Isaacs <amitay@samba.org>2017-05-24 17:03:28 +0200
commit9ec302bfad6abcbb1d6dfc759fa607757360ba66 (patch)
tree7528392ab0720d6ad243f408b09dcdd46058545d /ctdb/server/ctdb_call.c
parent075613489cbcc024c0f9269b68c32db9213650b2 (diff)
downloadsamba-9ec302bfad6abcbb1d6dfc759fa607757360ba66.tar.gz
ctdb-keepalive: Move ctdb_send_keepalive() to ctdb_keepalive.c
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/server/ctdb_call.c')
-rw-r--r--ctdb/server/ctdb_call.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/ctdb/server/ctdb_call.c b/ctdb/server/ctdb_call.c
index fa82b49b556..c6bff4954ca 100644
--- a/ctdb/server/ctdb_call.c
+++ b/ctdb/server/ctdb_call.c
@@ -1542,34 +1542,6 @@ int ctdb_daemon_call_recv(struct ctdb_call_state *state, struct ctdb_call *call)
}
-/*
- send a keepalive packet to the other node
-*/
-void ctdb_send_keepalive(struct ctdb_context *ctdb, uint32_t destnode)
-{
- struct ctdb_req_keepalive_old *r;
-
- if (ctdb->methods == NULL) {
- DEBUG(DEBUG_INFO,(__location__ " Failed to send keepalive. Transport is DOWN\n"));
- return;
- }
-
- r = ctdb_transport_allocate(ctdb, ctdb, CTDB_REQ_KEEPALIVE,
- sizeof(struct ctdb_req_keepalive_old),
- struct ctdb_req_keepalive_old);
- CTDB_NO_MEMORY_FATAL(ctdb, r);
- r->hdr.destnode = destnode;
- r->hdr.reqid = 0;
-
- CTDB_INCREMENT_STAT(ctdb, keepalive_packets_sent);
-
- ctdb_queue_packet(ctdb, &r->hdr);
-
- talloc_free(r);
-}
-
-
-
struct revokechild_deferred_call {
struct revokechild_deferred_call *prev, *next;
struct ctdb_context *ctdb;