summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-04-19 10:37:44 +1000
committerAndrew Tridgell <tridge@samba.org>2007-04-19 10:37:44 +1000
commitb79e29c779b4e1dc3247b3bb2c1d298e08bc8cdc (patch)
treee22008931e996ef962b48758b6ff9318a85e6872 /ctdb/include
parentfde5a66531af99c6d6ef665ccbfbb4944bdefdd3 (diff)
downloadsamba-b79e29c779b4e1dc3247b3bb2c1d298e08bc8cdc.tar.gz
samba-b79e29c779b4e1dc3247b3bb2c1d298e08bc8cdc.tar.xz
samba-b79e29c779b4e1dc3247b3bb2c1d298e08bc8cdc.zip
- 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)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h4
1 files changed, 2 insertions, 2 deletions
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);
/*