diff options
author | Amitay Isaacs <amitay@gmail.com> | 2017-06-29 23:41:08 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-08-30 14:59:23 +0200 |
commit | 676df8770bf4dfce8d45277cfe7f9ebf7fb0f7c3 (patch) | |
tree | d842877d92cbe613600a7f008dae2dcb3d996038 /ctdb/tools | |
parent | a57f062118dd1ea20b6037c48eab65c17ae71f59 (diff) | |
download | samba-676df8770bf4dfce8d45277cfe7f9ebf7fb0f7c3.tar.gz |
ctdb-protocol: Fix marshalling for ctdb_rec_buffer
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/tools')
-rw-r--r-- | ctdb/tools/ctdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index e506162d44b..44c067aa565 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -4256,6 +4256,7 @@ static int control_restoredb(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb, for (i=0; i<db_hdr.nbuf; i++) { struct ctdb_req_message message; TDB_DATA data; + size_t np; ret = ctdb_rec_buffer_read(fd, mem_ctx, &recbuf); if (ret != 0) { @@ -4268,7 +4269,7 @@ static int control_restoredb(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb, goto failed; } - ctdb_rec_buffer_push(recbuf, data.dptr); + ctdb_rec_buffer_push(recbuf, data.dptr, &np); message.srvid = pulldb.srvid; message.data.data = data; |