Skip to content
Snippets Groups Projects
Commit 0278291f authored by Danny Auble's avatar Danny Auble
Browse files

Fix for case sensitive databases when a slurmctld has a mixed case clustername...

Fix for case sensitive databases when a slurmctld has a mixed case clustername to lower case the string to easy compares.
parent 65753d02
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@ documents those changes that are of interest to users and admins.
* Changes in SLURM 2.1.1
=============================
-- Fix for case sensitive databases when a slurmctld has a mixed case
clustername to lower case the string to easy compares.
* Changes in SLURM 2.1.0
=============================
......
......@@ -1803,6 +1803,16 @@ _validate_and_set_defaults(slurm_ctl_conf_t *conf, s_p_hashtbl_t *hashtbl)
conf->batch_start_timeout = DEFAULT_BATCH_START_TIMEOUT;
s_p_get_string(&conf->cluster_name, "ClusterName", hashtbl);
/* Some databases are case sensitive so we have to make sure
the cluster name is lower case since sacctmgr makes sure
this is the case as well.
*/
if(conf->cluster_name) {
int i;
for (i = 0; conf->cluster_name[i] != '\0'; i++)
conf->cluster_name[i] =
(char)tolower(conf->cluster_name[i]);
}
if (!s_p_get_uint16(&conf->complete_wait, "CompleteWait", hashtbl))
conf->complete_wait = DEFAULT_COMPLETE_WAIT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment