diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-04-19 10:37:44 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2007-04-19 10:37:44 +1000 |
commit | b79e29c779b4e1dc3247b3bb2c1d298e08bc8cdc (patch) | |
tree | e22008931e996ef962b48758b6ff9318a85e6872 /ctdb/ib | |
parent | fde5a66531af99c6d6ef665ccbfbb4944bdefdd3 (diff) | |
download | samba-b79e29c779b4e1dc3247b3bb2c1d298e08bc8cdc.tar.gz |
- 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/ib')
-rw-r--r-- | ctdb/ib/ibw_ctdb_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/ib/ibw_ctdb_init.c b/ctdb/ib/ibw_ctdb_init.c index 3b0c6ad28fb..b4adfe6f124 100644 --- a/ctdb/ib/ibw_ctdb_init.c +++ b/ctdb/ib/ibw_ctdb_init.c @@ -158,10 +158,10 @@ static int ctdb_ibw_queue_pkt(struct ctdb_node *node, uint8_t *data, uint32_t le /* * transport packet allocator - allows transport to control memory for packets */ -static void *ctdb_ibw_allocate_pkt(struct ctdb_context *ctdb, size_t size) +static void *ctdb_ibw_allocate_pkt(TALLOC_CTX *mem_ctx, size_t size) { /* TODO: use ibw_alloc_send_buf instead... */ - return talloc_size(ctdb, size); + return talloc_size(mem_ctx, size); } #ifdef __NOTDEF__ |