This is an automated email from the git hooks/post-receive script.
teigland pushed a commit to branch testing3
in repository sanlock.
commit c1d65fd9fbf480259b3f02e9ae7f61be64a2459b
Author: David Teigland <teigland(a)redhat.com>
Date: Wed Nov 29 13:37:48 2017 -0600
sanlock: retry ballot when new lver is seen
Seeing a new/larger mbal or lver during ballot are
equivalent conditions, but only the mbal condition
was being automatically retried.
---
src/paxos_lease.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/paxos_lease.c b/src/paxos_lease.c
index 49fdff2..210543f 100644
--- a/src/paxos_lease.c
+++ b/src/paxos_lease.c
@@ -1796,7 +1796,7 @@ int paxos_lease_acquire(struct task *task,
error = run_ballot(task, token, cur_leader.num_hosts, next_lver, our_mbal,
&dblock);
- if (error == SANLK_DBLOCK_MBAL) {
+ if ((error == SANLK_DBLOCK_MBAL) || (error == SANLK_DBLOCK_LVER)) {
us = get_rand(0, 1000000);
if (us < 0)
us = token->host_id * 100;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.