ctdb-recovery: Terminate if recovery fails without any banning credits
commit600cec4d44a01391230a81efeece5155a97c8298
authorAmitay Isaacs <amitay@gmail.com>
Thu, 23 Jun 2016 11:07:37 +0000 (23 21:07 +1000)
committerMartin Schwenke <martins@samba.org>
Fri, 24 Jun 2016 07:56:23 +0000 (24 09:56 +0200)
tree09ef29ccd3a7a3fada8998eba99db7fb8ee081b4
parent18475565623210b0a7ed59298b9bf70a288c39e4
ctdb-recovery: Terminate if recovery fails without any banning credits

In case of database recovery failure, if there are no banning credits
assigned, then the async computation is never terminated.  The else
condition is missing in (max_credits >= NUM_RETRIES) check.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Jun 24 09:56:23 CEST 2016 on sn-devel-144
ctdb/server/ctdb_recovery_helper.c