From: Pete Zaitcev <zaitcev@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: [tabled patch 1/4] mark down nodes properly
Date: Fri, 21 May 2010 20:19:08 -0600 [thread overview]
Message-ID: <20100521201908.26d11a1f@redhat.com> (raw)
A simple assignment was forgotten, so tabled was expending a bit of
extra effort trying to contact nodes that are down.
Also, change the log level to match the line above.
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
---
server/server.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
commit 422fbb466a3e8e1599894069dff3dc50e189f7bd
Author: Pete Zaitcev <zaitcev@yahoo.com>
Date: Fri May 21 19:50:55 2010 -0600
Actually mark down nodes as down.
diff --git a/server/server.c b/server/server.c
index 1c7114a..4e8dba3 100644
--- a/server/server.c
+++ b/server/server.c
@@ -1499,9 +1499,10 @@ int stor_update_cb(void)
stn->up = true;
stn->last_up = time(NULL);
} else {
- if (stn->last_up != 0 &&
+ if (stn->up &&
time(NULL) >= stn->last_up + CHUNK_REBOOT_TIME) {
- applog(LOG_INFO, " NID %u went down", stn->id);
+ applog(LOG_DEBUG, " NID %u went down", stn->id);
+ stn->up = false;
}
}
}
next reply other threads:[~2010-05-22 2:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-22 2:19 Pete Zaitcev [this message]
2010-05-25 22:43 ` [tabled patch 1/4] mark down nodes properly Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100521201908.26d11a1f@redhat.com \
--to=zaitcev@redhat.com \
--cc=hail-devel@vger.kernel.org \
--cc=jeff@garzik.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox