From f8a70d41c41d1a5f390f44188c15fc77f2b6977a Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Thu, 12 Feb 2009 18:25:52 +0000
Subject: [PATCH] Post to slurmdbd that a reservation has been found invalid
 (at reboot)

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

diff --git a/src/slurmctld/reservation.c b/src/slurmctld/reservation.c
index 5b355f696fd..b16577f6290 100644
--- a/src/slurmctld/reservation.c
+++ b/src/slurmctld/reservation.c
@@ -1662,6 +1662,7 @@ static void _validate_all_reservations(void)
 		if (!_validate_one_reservation(resv_ptr)) {
 			error("Purging invalid reservation record %s",
 			      resv_ptr->name);
+			_post_resv_delete(resv_ptr);
 			_clear_job_resv(resv_ptr);
 			list_delete_item(iter);
 		} else {
-- 
GitLab