From b79e29c779b4e1dc3247b3bb2c1d298e08bc8cdc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 19 Apr 2007 10:37:44 +1000 Subject: - make he packet allocation routines take a mem_ctx, which allows us to put memory directly in the right context, avoiding quite a few talloc_steal calls, and simplifying the code - make the fetch lock code in the daemon fully async (This used to be ctdb commit d98b4b4fcadad614861c0d44a3854d97b01d0f74) --- ctdb/include/ctdb_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ctdb/include') diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 4b97c669cb..ee5b782693 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -80,7 +80,7 @@ struct ctdb_methods { int (*start)(struct ctdb_context *); /* start protocol processing */ int (*add_node)(struct ctdb_node *); /* setup a new node */ int (*queue_pkt)(struct ctdb_node *, uint8_t *data, uint32_t length); - void *(*allocate_pkt)(struct ctdb_context *, size_t ); + void *(*allocate_pkt)(TALLOC_CTX *mem_ctx, size_t ); }; /* @@ -393,7 +393,7 @@ struct ctdb_queue *ctdb_queue_setup(struct ctdb_context *ctdb, /* allocate a packet for use in client<->daemon communication */ -void *ctdbd_allocate_pkt(struct ctdb_context *ctdb, size_t len); +void *ctdbd_allocate_pkt(TALLOC_CTX *mem_ctx, size_t len); /* -- cgit