From 52ab4abfb8c6dcd3af3b10a9c7a3ef7c0b8ced22 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Thu, 24 Jul 2003 23:48:39 +0000
Subject: [PATCH] Clear the node's reason if it checks in from a DOWN state
 with the return_to_service flag set.

---
 src/slurmctld/node_mgr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/slurmctld/node_mgr.c b/src/slurmctld/node_mgr.c
index 9e993e2bb47..2190d42e809 100644
--- a/src/slurmctld/node_mgr.c
+++ b/src/slurmctld/node_mgr.c
@@ -1119,6 +1119,7 @@ validate_node_specs (char *node_name, uint32_t cpus,
 				node_ptr->node_state = NODE_STATE_IDLE;
 			info ("validate_node_specs: node %s returned to service", 
 			      node_name);
+			xfree(node_ptr->reason);
 			resp_state = 1;	/* just started responding */
 		} else if ((node_ptr->node_state == NODE_STATE_ALLOCATED) &&
 			   (job_count == 0)) {	/* job vanished */
-- 
GitLab