projects
/
people
/
alex
/
keepalived.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ddc329
)
VRRP: fixed nopreempt from FAULT state
author
Alexandre Cassen
<acassen@freebox.fr>
Mon, 28 Sep 2009 11:20:15 +0000
(13:20 +0200)
committer
Alexandre Cassen
<acassen@freebox.fr>
Mon, 28 Sep 2009 11:20:15 +0000
(13:20 +0200)
The owner of higher priority in FAULT state shouldn't preempt current MASTER when
it's recovering, if the nopreempt option is set.
keepalived/vrrp/vrrp.c
patch
|
blob
|
history
diff --git
a/keepalived/vrrp/vrrp.c
b/keepalived/vrrp/vrrp.c
index
ac86490
..
0eebf9b
100644
(file)
--- a/
keepalived/vrrp/vrrp.c
+++ b/
keepalived/vrrp/vrrp.c
@@
-881,7
+881,8
@@
vrrp_state_fault_rx(vrrp_rt * vrrp, char *buf, int buflen)
return 0;
} else if (vrrp->effective_priority > hd->priority ||
hd->priority == VRRP_PRIO_OWNER)
- return 1;
+ if (!vrrp->nopreempt)
+ return 1;
return 0;
}