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

Better help when a select plugin loads another if they are out of sync

parent 1f7976a5
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,7 @@ extern int other_select_init(void)
int retval = SLURM_SUCCESS;
char *plugin_type = "select";
char *type = NULL;
int n_syms;
if (init_run && g_context)
return retval;
......@@ -141,9 +142,17 @@ extern int other_select_init(void)
else
type = "select/linear";
n_syms = sizeof(node_select_syms);
if (n_syms != sizeof(ops))
fatal("For some reason node_select_syms in "
"src/plugins/select/other/other_select.c differs from "
"slurm_select_ops_t found in src/common/node_select.h. "
"node_select_syms should match what is in "
"src/common/node_select.c");
if (!(g_context = plugin_context_create(
plugin_type, type, (void **)&ops,
node_select_syms, sizeof(node_select_syms)))) {
node_select_syms, n_syms))) {
error("cannot create %s context for %s", plugin_type, type);
retval = SLURM_ERROR;
goto done;
......
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