ctdb-tools: Add early return for empty connection list
authorMartin Schwenke <martin@meltin.net>
Fri, 5 Aug 2016 01:27:14 +0000 (11:27 +1000)
committerMartin Schwenke <martins@samba.org>
Mon, 8 Aug 2016 06:17:33 +0000 (08:17 +0200)
commit1f6835c73245366111946b92605315c0cac84295
treeb23ceded501a2e36c18c2143adececf40f498039
parentb54bd763b7a4ff3cd1983a8ccc89b23db5263a4d
ctdb-tools: Add early return for empty connection list

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12121

If the connection list is empty then process_clist_send() still
creates a request.  However, since no subrequests are created for
controls sent, tevent_req_poll() waits forever for an event.

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