From d243779f355c53c3d0576de9aecc3825b33dd509 Mon Sep 17 00:00:00 2001
From: "Leigh B. Stoller" <stoller@flux.utah.edu>
Date: Tue, 9 Jan 2007 17:49:57 +0000
Subject: [PATCH] Fix minor bug; TBSetNodeLogEntry() takes a dbuid, not a perl
 $UID. This caused the reporting_uid field of 20,000 rows to be set to zero
 instead of a string.

---
 db/node_status.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/db/node_status.in b/db/node_status.in
index ec4b2d0b45..2522aac879 100755
--- a/db/node_status.in
+++ b/db/node_status.in
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 #
 # EMULAB-COPYRIGHT
-# Copyright (c) 2000-2005 University of Utah and the Flux Group.
+# Copyright (c) 2000-2005, 2007 University of Utah and the Flux Group.
 # All rights reserved.
 #
 use English;
@@ -187,7 +187,7 @@ while (my ($node) = $query_result->fetchrow_array) {
 	if ($verbose);
     if (!$debug) {
 	MarkPhysNodeDown($node);
-	TBSetNodeLogEntry($node, $UID, TB_DEFAULT_NODELOGTYPE(),
+	TBSetNodeLogEntry($node, "root", TB_DEFAULT_NODELOGTYPE(),
 		"'Moved to hwdown by node_status; ".
 		"did not report in for more than $timeout seconds.'");
     }
-- 
GitLab