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>
if (ret != 0) {
return ret;
}
+ if (count == 0) {
+ return 0;
+ }
req = process_clist_send(mem_ctx, ctdb, clist, count,
ctdb_req_control_tcp_add_delayed_update,
if (ret != 0) {
return ret;
}
+ if (count == 0) {
+ return 0;
+ }
req = process_clist_send(mem_ctx, ctdb, clist, count,
ctdb_req_control_tcp_remove,