[tabled patch 1/4] mark down nodes properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

---
 server/server.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

commit 422fbb466a3e8e1599894069dff3dc50e189f7bd
Author: Pete Zaitcev <zaitcev@xxxxxxxxx>
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;
 			}
 		}
 	}
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux