diff --git a/ctdb/ib/ibw_ctdb_init.c b/ctdb/ib/ibw_ctdb_init.c index 6fdb0d887cf..f9d00c60605 100644 --- a/ctdb/ib/ibw_ctdb_init.c +++ b/ctdb/ib/ibw_ctdb_init.c @@ -40,7 +40,8 @@ static int ctdb_ibw_listen(struct ctdb_context *ctdb, int backlog) { - struct ibw_ctx *ictx = talloc_get_type(ctdb->private_data, struct ibw_ctx); + struct ibw_ctx *ictx = talloc_get_type(ctdb->transport_data, + struct ibw_ctx); assert(ictx!=NULL); @@ -62,7 +63,8 @@ static int ctdb_ibw_listen(struct ctdb_context *ctdb, int backlog) */ static int ctdb_ibw_add_node(struct ctdb_node *node) { - struct ibw_ctx *ictx = talloc_get_type(node->ctdb->private_data, struct ibw_ctx); + struct ibw_ctx *ictx = talloc_get_type(node->ctdb->transport_data, + struct ibw_ctx); struct ctdb_ibw_node *cn = talloc_zero(node, struct ctdb_ibw_node); assert(cn!=NULL); @@ -246,7 +248,7 @@ int ctdb_ibw_init(struct ctdb_context *ctdb) } ctdb->methods = &ctdb_ibw_methods; - ctdb->private_data = ictx; + ctdb->transport_data = ictx; DEBUG(DEBUG_DEBUG, ("ctdb_ibw_init succeeded.\n")); return 0; diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 9f6ebab32de..6aba3c1d48e 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -286,7 +286,7 @@ struct ctdb_context { char *err_msg; const struct ctdb_methods *methods; /* transport methods */ const struct ctdb_upcalls *upcalls; /* transport upcalls */ - void *private_data; /* private to transport */ + void *transport_data; /* private to transport */ struct ctdb_db_context *db_list; struct srvid_context *srv; struct srvid_context *tunnels; diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c index 033bd933d32..f54086fcd3c 100644 --- a/ctdb/tcp/tcp_connect.c +++ b/ctdb/tcp/tcp_connect.c @@ -277,7 +277,8 @@ static void ctdb_listen_event(struct tevent_context *ev, struct tevent_fd *fde, uint16_t flags, void *private_data) { struct ctdb_context *ctdb = talloc_get_type(private_data, struct ctdb_context); - struct ctdb_tcp *ctcp = talloc_get_type(ctdb->private_data, struct ctdb_tcp); + struct ctdb_tcp *ctcp = talloc_get_type(ctdb->transport_data, + struct ctdb_tcp); ctdb_sock_addr addr; socklen_t len; int fd; @@ -368,7 +369,7 @@ static void ctdb_listen_event(struct tevent_context *ev, struct tevent_fd *fde, */ static int ctdb_tcp_listen_automatic(struct ctdb_context *ctdb) { - struct ctdb_tcp *ctcp = talloc_get_type(ctdb->private_data, + struct ctdb_tcp *ctcp = talloc_get_type(ctdb->transport_data, struct ctdb_tcp); ctdb_sock_addr sock; int lock_fd; @@ -509,7 +510,7 @@ failed: */ int ctdb_tcp_listen(struct ctdb_context *ctdb) { - struct ctdb_tcp *ctcp = talloc_get_type(ctdb->private_data, + struct ctdb_tcp *ctcp = talloc_get_type(ctdb->transport_data, struct ctdb_tcp); ctdb_sock_addr sock; int sock_size; diff --git a/ctdb/tcp/tcp_init.c b/ctdb/tcp/tcp_init.c index 9ad13aabc74..5bd9e2f3a09 100644 --- a/ctdb/tcp/tcp_init.c +++ b/ctdb/tcp/tcp_init.c @@ -135,12 +135,12 @@ static void ctdb_tcp_restart(struct ctdb_node *node) */ static void ctdb_tcp_shutdown(struct ctdb_context *ctdb) { - struct ctdb_tcp *ctcp = talloc_get_type(ctdb->private_data, + struct ctdb_tcp *ctcp = talloc_get_type(ctdb->transport_data, struct ctdb_tcp); uint32_t i; talloc_free(ctcp); - ctdb->private_data = NULL; + ctdb->transport_data = NULL; for (i=0; inum_nodes; i++) { TALLOC_FREE(ctdb->nodes[i]->transport_data); @@ -191,7 +191,7 @@ static const struct ctdb_methods ctdb_tcp_methods = { static int tcp_ctcp_destructor(struct ctdb_tcp *ctcp) { - ctcp->ctdb->private_data = NULL; + ctcp->ctdb->transport_data = NULL; ctcp->ctdb->methods = NULL; return 0; @@ -209,7 +209,7 @@ int ctdb_tcp_init(struct ctdb_context *ctdb) ctcp->listen_fd = -1; ctcp->ctdb = ctdb; - ctdb->private_data = ctcp; + ctdb->transport_data = ctcp; ctdb->methods = &ctdb_tcp_methods; talloc_set_destructor(ctcp, tcp_ctcp_destructor);