Fix a corner case -- if the MCA param had already been registered, be
sure to look it up if NULL != current_value. This commit was SVN r6727.
Этот коммит содержится в:
родитель
2d707f34a0
Коммит
ae7d85b6ca
@ -1061,6 +1061,17 @@ static int param_register(const char *type_name,
|
|||||||
value in the old entry) */
|
value in the old entry) */
|
||||||
|
|
||||||
OBJ_DESTRUCT(¶m);
|
OBJ_DESTRUCT(¶m);
|
||||||
|
|
||||||
|
/* Finally, if we have a lookup value, look it up */
|
||||||
|
|
||||||
|
if (NULL != current_value) {
|
||||||
|
if (!param_lookup(i, current_value, NULL)) {
|
||||||
|
return OMPI_ERR_NOT_FOUND;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Return the new index */
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user