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

Move conversion until after tables have been created.

parent 58de6708
No related branches found
No related tags found
No related merge requests found
...@@ -900,10 +900,18 @@ static int _as_mysql_acct_check_tables(mysql_conn_t *mysql_conn) ...@@ -900,10 +900,18 @@ static int _as_mysql_acct_check_tables(mysql_conn_t *mysql_conn)
break; break;
} }
list_iterator_destroy(itr); list_iterator_destroy(itr);
slurm_mutex_unlock(&as_mysql_cluster_list_lock); if (rc != SLURM_SUCCESS) {
slurm_mutex_unlock(&as_mysql_cluster_list_lock);
return rc;
}
if (rc != SLURM_SUCCESS) rc = as_mysql_convert_tables(mysql_conn);
slurm_mutex_unlock(&as_mysql_cluster_list_lock);
if (rc != SLURM_SUCCESS) {
error("issue converting tables");
return rc; return rc;
}
if (mysql_db_create_table(mysql_conn, acct_coord_table, if (mysql_db_create_table(mysql_conn, acct_coord_table,
acct_coord_table_fields, acct_coord_table_fields,
......
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