ctdb-protocol: Use ctdb_rec_buffer_traverse to calaculate length of data
authorAmitay Isaacs <amitay@gmail.com>
Thu, 3 Aug 2017 07:50:48 +0000 (17:50 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 30 Aug 2017 12:59:23 +0000 (14:59 +0200)
commita57f062118dd1ea20b6037c48eab65c17ae71f59
treef1332c00f5c36c08c413e286f2a4bc6b33f699e7
parentadab372e56106350fb08f039179f4cebf1e1035e
ctdb-protocol: Use ctdb_rec_buffer_traverse to calaculate length of data

If the parser function is NULL, ctdb_rec_buffer_traverse will return the
amount of data used by ctdb_rec_data structures.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/protocol/protocol_types.c