]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb: calculate queue input buffer size correctly
authorSwen Schillig <swen@vnet.ibm.com>
Wed, 7 Mar 2018 12:54:45 +0000 (13:54 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 18 Aug 2018 02:58:05 +0000 (04:58 +0200)
commitd0ed4a536ee0ddce2e27dffe301304b8fa55ccce
treedacd2fddf82c3b077834474c46444930875265ba
parent8262efbc96b06535b5d29395c71d5fa4e0d8bc63
ctdb: calculate queue input buffer size correctly

The queue's input buffer is calculated in an iterative way.
This can result in a few back and forth jumping and
a few memory allocations and mem-free cycles.
This is very time consuming and not required, because the required
memory size can be calculated right away.

Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Aug 18 04:58:05 CEST 2018 on sn-devel-144
ctdb/common/ctdb_io.c