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

better patch than last checkin

parent 2303c665
No related branches found
No related tags found
No related merge requests found
...@@ -262,20 +262,9 @@ static int _cluster_modify_wckeys(mysql_conn_t *mysql_conn, ...@@ -262,20 +262,9 @@ static int _cluster_modify_wckeys(mysql_conn_t *mysql_conn,
return SLURM_ERROR; return SLURM_ERROR;
} }
/* FIXME: This probably needs to do something */ /* This key doesn't exist on this cluster, that is ok. */
/* we need to create it (no enforcing is done with wckeys) */ if (!mysql_num_rows(result))
if (!mysql_num_rows(result)) {
/* Use fresh one here so we don't have to
worry about dealing with bad values.
*/
/* slurmdb_wckey_rec_t tmp_wckey; */
/* slurmdb_init_wckey_rec(&tmp_wckey, 0); */
/* tmp_wckey.is_def = 1; */
/* tmp_wckey.cluster = cluster_name; */
/* tmp_wckey.name = row[1]; */
/* tmp_wckey.user = row[2]; */
return SLURM_SUCCESS; return SLURM_SUCCESS;
}
while((row = mysql_fetch_row(result))) { while((row = mysql_fetch_row(result))) {
slurmdb_wckey_rec_t *wckey_rec = NULL; slurmdb_wckey_rec_t *wckey_rec = NULL;
......
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