------------------------------------------------------------
revno: 498
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell <[EMAIL PROTECTED]>
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) {

Reply via email to