Only activate this module if specifically requested
This commit was SVN r23203.
Этот коммит содержится в:
родитель
f04dcffecd
Коммит
02cc0cde83
@ -60,14 +60,22 @@ orte_db_daemon_component_open(void)
|
|||||||
return ORTE_SUCCESS;
|
return ORTE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* only select us if specifically requested */
|
||||||
int orte_db_daemon_component_query(mca_base_module_t **module, int *priority)
|
int orte_db_daemon_component_query(mca_base_module_t **module, int *priority)
|
||||||
{
|
{
|
||||||
|
char *req;
|
||||||
|
|
||||||
/* if we built, then we are available */
|
if (NULL != (req = getenv("OMPI_MCA_db"))) {
|
||||||
*priority = 100;
|
if (0 == strcasecmp(req, "daemon")) {
|
||||||
*module = (mca_base_module_t*)&orte_db_daemon_module;
|
*priority = 100;
|
||||||
return ORTE_SUCCESS;
|
*module = (mca_base_module_t*)&orte_db_daemon_module;
|
||||||
|
return ORTE_SUCCESS;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
*priority = 0;
|
||||||
|
*module = NULL;
|
||||||
|
return ORTE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user