[prev in list] [next in list] [prev in thread] [next in thread]
List: sanlock-devel
Subject: [sanlock] 05/07: sanlock: retry ballot when new lver is seen
From: git () pagure ! io (git repository hosting)
Date: 2017-11-30 22:32:17
Message-ID: 20171130223213.316E985BD9CC () pagure01 ! fedoraproject ! org
[Download RAW message or body]
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@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.
_______________________________________________
sanlock-devel mailing list -- sanlock-devel@lists.fedorahosted.org
To unsubscribe send an email to sanlock-devel-leave@lists.fedorahosted.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic