mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
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
This commit is contained in:
parent
1847556562
commit
600cec4d44
@ -2609,6 +2609,8 @@ static void recovery_db_recovery_done(struct tevent_req *subreq)
|
||||
}
|
||||
tevent_req_set_callback(subreq, recovery_failed_done,
|
||||
req);
|
||||
} else {
|
||||
tevent_req_error(req, EIO);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user