From: Amitay Isaacs Date: Fri, 6 Nov 2015 06:08:18 +0000 (+1100) Subject: ctdb-client: Use ctdb_rec_buffer_init() to initialize ctdb_rec_buffer X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba%2Fsamba-obnox.git;a=commitdiff_plain;h=d90517912712f2e8021733ecaabed903cb2d0aed ctdb-client: Use ctdb_rec_buffer_init() to initialize ctdb_rec_buffer ... instead of talloc_zero(). This sets the db_id correctly. Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Wed Jan 20 07:28:42 CET 2016 on sn-devel-144 --- diff --git a/ctdb/client/client_db.c b/ctdb/client/client_db.c index 1086b0e14e6..287efd6cad8 100644 --- a/ctdb/client/client_db.c +++ b/ctdb/client/client_db.c @@ -1624,7 +1624,7 @@ struct tevent_req *ctdb_transaction_start_send(TALLOC_CTX *mem_ctx, h->sid.unique_id = h->sid.task_id; h->sid.unique_id = (h->sid.unique_id << 32) | h->sid.pid; - h->recbuf = talloc_zero(h, struct ctdb_rec_buffer); + h->recbuf = ctdb_rec_buffer_init(h, db->db_id); if (tevent_req_nomem(h->recbuf, req)) { return tevent_req_post(req, ev); }