1
1

Merge pull request #4128 from jsquyres/pr/fix-info-delete-return-value

mpi/info_delete: fix return code
Этот коммит содержится в:
Jeff Squyres 2017-08-22 14:33:29 -04:00 коммит произвёл GitHub
родитель f5fb43e9c7 ea5093fc14
Коммит b991135634

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

@ -14,6 +14,7 @@
* reserved.
* Copyright (c) 2015 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2017 Cisco Systems, Inc. All rights reserved
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -78,5 +79,14 @@ int MPI_Info_delete(MPI_Info info, const char *key) {
OPAL_CR_ENTER_LIBRARY();
err = ompi_info_delete (info, key);
// Note that ompi_info_delete() (i.e., opal_info_delete()) will
// return OPAL_ERR_NOT_FOUND if there was no corresponding key to
// delete. Per MPI-3.1, we need to convert that to
// MPI_ERR_INFO_NOKEY.
if (OPAL_ERR_NOT_FOUND == err) {
err = MPI_ERR_INFO_NOKEY;
}
OMPI_ERRHANDLER_RETURN(err, MPI_COMM_WORLD, err, FUNC_NAME);
}