ctdb-scripts: Optimise tickle_tcp_connections()
authorMartin Schwenke <martin@meltin.net>
Tue, 8 Sep 2015 01:29:25 +0000 (11:29 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 8 Sep 2016 08:45:42 +0000 (10:45 +0200)
commitc730f0b3374bb2708f79e65dcab89febbf76476c
treeaaf2c36b76f8a593f5198b27e1eb928d04aef45e
parent30c56a0c801dfb64085013a87ddedb1cd76b42a9
ctdb-scripts: Optimise tickle_tcp_connections()

Pipe the connections to "ctdb tickle" on stdin to avoid having to fork
so many "ctdb tickle" processes.  This maintains the current level of
verbosity at the price of some extra memory usage.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Thu Sep  8 10:45:42 CEST 2016 on sn-devel-144
ctdb/config/functions