Skip to content
Snippets Groups Projects
Commit 07a503b8 authored by Moe Jette's avatar Moe Jette
Browse files

Have main node_select plugin initialize SELECT_GET_NODE_SCALING value to 1.

parent e0334d2d
No related branches found
No related tags found
No related merge requests found
......@@ -425,10 +425,15 @@ extern int select_g_get_info_from_plugin (enum select_data_info cr_info,
*/
extern int select_g_alter_node_cnt (enum select_node_cnt type, void *data)
{
if (slurm_select_init() < 0)
if (slurm_select_init() < 0)
return SLURM_ERROR;
return (*(g_select_context->ops.alter_node_cnt))(type, data);
if (type == SELECT_GET_NODE_SCALING) {
/* default to one, so most plugins don't have to */
uint32_t *nodes = (uint32_t *)data;
*nodes = 1;
}
return (*(g_select_context->ops.alter_node_cnt))(type, data);
}
/*
......
......@@ -1302,10 +1302,6 @@ extern int select_p_get_info_from_plugin(enum select_data_info info,
extern int select_p_alter_node_cnt(enum select_node_cnt type, void *data)
{
if (type == SELECT_GET_NODE_SCALING) {
uint32_t *nodes = (uint32_t *)data;
*nodes = 1;
}
return SLURM_SUCCESS;
}
......
......@@ -496,9 +496,5 @@ extern int select_p_get_info_from_plugin (enum select_data_info info, void *data
extern int select_p_alter_node_cnt(enum select_node_cnt type, void *data)
{
if (type == SELECT_GET_NODE_SCALING) {
uint32_t *nodes = (uint32_t *)data;
*nodes = 1;
}
return SLURM_SUCCESS;
}
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