From 4b158298754b079dac8f9395ae23361be96bc2d4 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Mon, 29 Aug 2005 19:58:53 +0000
Subject: [PATCH] Don't even try to set conn_type or rotate specs for non-BGL
 job.

---
 src/slurmctld/job_mgr.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c
index aca736508e2..55060311877 100644
--- a/src/slurmctld/job_mgr.c
+++ b/src/slurmctld/job_mgr.c
@@ -3231,6 +3231,7 @@ int update_job(job_desc_msg_t * job_specs, uid_t uid)
 	}
 #endif
 
+#ifdef HAVE_BGL
 	if (job_specs->conn_type != (uint16_t) NO_VAL) {
 		select_g_set_jobinfo(job_ptr->select_jobinfo,
 			SELECT_DATA_CONN_TYPE,
@@ -3246,6 +3247,7 @@ int update_job(job_desc_msg_t * job_specs, uid_t uid)
 		info("update_job: setting rotate to %u for job_id %u",
 			job_specs->rotate, job_ptr->job_id);
 	}
+#endif
 
 	return error_code;
 }
-- 
GitLab