Skip to content
Snippets Groups Projects
Commit 13a1ef46 authored by Moe Jette's avatar Moe Jette
Browse files
parent 1a5966bc
No related branches found
No related tags found
No related merge requests found
......@@ -1791,7 +1791,7 @@ documents those changes that are of interest to users and admins.
* Changes in SLURM 0.2.0-pre2
=============================
-- Fix for reconfigure when public/private key path is changed.
-- Shared memory fixes in slurmd.
- fix for infinite semaphore incrementation bug.
......
......@@ -950,7 +950,7 @@ JobCredentialPublicCertificate=/usr/local/slurm/public.cert
.br
JobAcctType=jobacct/linux
.br
JobAcctLoc=/var/log/slurm_accounting.log
JobAcctLogFile=/var/log/slurm_accounting.log
.br
JobAcctParameters="Frequency=30,MaxSendRetries=5"
.br
......
......@@ -283,12 +283,12 @@ _spank_plugin_find (const char *path, const char *file)
* Ensure PATH ends with a :
*/
if (dir[pathlen - 1] != ':') {
dir[pathlen] = ':';
dir[pathlen+1] = '\0';
dir[pathlen] = ':';
dir[pathlen+1] = '\0';
}
entry = dir;
while ((p = strchr(dir, ':'))) {
while ((p = strchr(entry, ':'))) {
char *fq_path;
*(p++) = '\0';
......@@ -297,9 +297,8 @@ _spank_plugin_find (const char *path, const char *file)
xstrcatchar (fq_path, '/');
xstrcat (fq_path, file);
if (access (fq_path, F_OK) == 0) {
if (plugin_peek (fq_path, NULL, 0, NULL) != SLURM_ERROR)
return (fq_path);
}
xfree (fq_path);
entry = p;
......
......@@ -1197,6 +1197,7 @@ extern int agent_retry (int min_wait)
agent_arg_t *agent_arg_ptr;
ListIterator retry_iter;
slurm_mutex_lock(&retry_mutex);
if (retry_list) {
static time_t last_msg_time = (time_t) 0;
uint32_t msg_type[5], i = 0;
......@@ -1221,21 +1222,23 @@ extern int agent_retry (int min_wait)
last_msg_time = now;
}
}
if (agent_cnt >= MAX_AGENT_CNT) /* too much work already */
if (agent_cnt >= MAX_AGENT_CNT) { /* too much work already */
slurm_mutex_unlock(&retry_mutex);
return list_size;
}
slurm_mutex_lock(&retry_mutex);
if (retry_list) {
/* first try to find a new (never tried) record */
retry_iter = list_iterator_create(retry_list);
while ((queued_req_ptr = (queued_request_t *)
list_next(retry_iter))) {
if (queued_req_ptr->last_attempt == 0)
if (queued_req_ptr->last_attempt == 0) {
list_remove(retry_iter);
list_size--;
break;
}
}
list_iterator_destroy(retry_iter);
}
......
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