mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
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 <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Wed Jan 20 07:28:42 CET 2016 on sn-devel-144
This commit is contained in:
parent
a7d54bb2c1
commit
d905179127
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user