Rev 498: later times are a lower priority,
not a higher priority in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Thu Jun 7 09:21:56 GMT 2007
------------------------------------------------------------
revno: 498
revision-id: tridge at samba.org-20070607092155-cq7warowco9jcgu0
parent: tridge at samba.org-20070607091727-nyesysrrvcjrbgf3
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Thu 2007-06-07 19:21:55 +1000
message:
later times are a lower priority, not a higher priority
modified:
common/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1
=== modified file 'common/ctdb_recoverd.c'
--- a/common/ctdb_recoverd.c 2007-06-07 09:17:27 +0000
+++ b/common/ctdb_recoverd.c 2007-06-07 09:21:55 +0000
@@ -97,6 +97,7 @@
}
if (vnn == ctdb->vnn) {
+ DEBUG(0,("self ban - lowering our election priority\n"));
/* banning ourselves - lower our election priority */
rec->priority_time = timeval_current();
}
@@ -842,7 +843,7 @@
/* then the longest running node */
if (cmp == 0) {
- cmp = timeval_compare(&myem.priority_time, &em->priority_time);
+ cmp = timeval_compare(&em->priority_time, &myem.priority_time);
}
if (cmp == 0) {
More information about the samba-cvs
mailing list