From 908479cc4cb2a855b1e2bb4d0ea3c9f3b3334d3a Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Mon, 7 Jul 2003 20:18:54 +0000
Subject: [PATCH] Reset update_job_time on step create/delete. This permits the
 proper handling of get info calls with the "no change" response.

---
 src/slurmctld/step_mgr.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/slurmctld/step_mgr.c b/src/slurmctld/step_mgr.c
index 4f63739c2f5..4b4271e78eb 100644
--- a/src/slurmctld/step_mgr.c
+++ b/src/slurmctld/step_mgr.c
@@ -67,6 +67,7 @@ create_step_record (struct job_record *job_ptr)
 	step_record_point = 
 		(struct step_record *) xmalloc (sizeof (struct step_record));
 
+	last_job_update = time(NULL);
 	step_record_point->job_ptr = job_ptr; 
 	step_record_point->step_id = (job_ptr->next_step_id)++;
 	step_record_point->start_time = time ( NULL ) ;
@@ -92,6 +93,7 @@ delete_all_step_records (struct job_record *job_ptr)
 		fatal ("delete_all_step_records: job_ptr == NULL");
 	step_record_iterator = list_iterator_create (job_ptr->step_list);		
 
+	last_job_update = time(NULL);
 	while ((step_record_point = 
 		(struct step_record *) list_next (step_record_iterator))) {
 		list_remove (step_record_iterator);
@@ -126,6 +128,7 @@ delete_step_record (struct job_record *job_ptr, uint32_t step_id)
 	error_code = ENOENT;
 	step_record_iterator = list_iterator_create (job_ptr->step_list);		
 
+	last_job_update = time(NULL);
 	while ((step_record_point = 
 		(struct step_record *) list_next (step_record_iterator))) {
 		if (step_record_point->step_id == step_id) {
-- 
GitLab