1
1

Only activate this module if specifically requested

This commit was SVN r23203.
Этот коммит содержится в:
Ralph Castain 2010-05-24 18:42:32 +00:00
родитель f04dcffecd
Коммит 02cc0cde83

Просмотреть файл

@ -60,14 +60,22 @@ orte_db_daemon_component_open(void)
return ORTE_SUCCESS;
}
/* only select us if specifically requested */
int orte_db_daemon_component_query(mca_base_module_t **module, int *priority)
{
char *req;
/* if we built, then we are available */
*priority = 100;
*module = (mca_base_module_t*)&orte_db_daemon_module;
return ORTE_SUCCESS;
if (NULL != (req = getenv("OMPI_MCA_db"))) {
if (0 == strcasecmp(req, "daemon")) {
*priority = 100;
*module = (mca_base_module_t*)&orte_db_daemon_module;
return ORTE_SUCCESS;
}
}
*priority = 0;
*module = NULL;
return ORTE_ERROR;
}