ctdb-protocol: Return required buffer size in push functions
authorAmitay Isaacs <amitay@gmail.com>
Sun, 1 May 2016 12:13:35 +0000 (22:13 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 3 May 2016 02:43:20 +0000 (04:43 +0200)
commit10dbeddab5237b401c1eb42a50a27dde19a580c9
treee8d5f1afba71c1f51ce50dcdf5d1e3f2f268ccdd
parentf288ce84281c62cd8e0026caf3dd9c89acc2a2ef
ctdb-protocol: Return required buffer size in push functions

If the buffer size provided is not sufficient, then return the required
buffer length.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/client/client_call.c
ctdb/client/client_control.c
ctdb/client/client_message.c
ctdb/protocol/protocol_api.h
ctdb/protocol/protocol_call.c
ctdb/protocol/protocol_control.c
ctdb/protocol/protocol_message.c
ctdb/tests/src/protocol_client_test.c