cluster: RHEL56 - qdiskd: Fix bad timer check - RHEL5

Lon Hohberger lon at fedoraproject.org
Mon May 23 21:58:05 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f0ffdf45b95f891a54aa1b085aa84bd8882974cb
Commit:        f0ffdf45b95f891a54aa1b085aa84bd8882974cb
Parent:        0c461465687e2b59677a21c7712a2683deb024ba
Author:        Lon Hohberger <lhh at redhat.com>
AuthorDate:    Thu Mar 3 17:39:10 2011 -0500
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Mon May 23 17:44:08 2011 -0400

qdiskd: Fix bad timer check - RHEL5

Resolves: rhbz#707053

Signed-off-by: Lon Hohberger <lhh at redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto at redhat.com>
Tested-by: Masanari Iida <masanari_iida at hp.com>
---
 cman/qdisk/score.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cman/qdisk/score.c b/cman/qdisk/score.c
index 2e8993d..1907e4a 100644
--- a/cman/qdisk/score.c
+++ b/cman/qdisk/score.c
@@ -107,7 +107,8 @@ fork_heuristic(struct h_data *h, struct timespec *now)
 	}
 
 	if (now->tv_sec < h->nextrun.tv_sec ||
-	    now->tv_nsec < h->nextrun.tv_nsec)
+	    ((now->tv_sec == h->nextrun.tv_sec) &&
+	     (now->tv_nsec < h->nextrun.tv_nsec)))
 		return 0;
 
 	h->nextrun.tv_sec = now->tv_sec + h->interval;


More information about the cluster-commits mailing list