Don't allow multiple pvar with the same pvar_index.
Fix Cisco copyright.
Этот коммит содержится в:
родитель
98b6d65385
Коммит
c03b3b135c
@ -2,8 +2,11 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2015 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2015 Bull SAS. All rights reserved.
|
||||
* Copyright (c) 2015 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -296,8 +299,9 @@ int mca_base_pvar_register (const char *project, const char *framework, const ch
|
||||
break;
|
||||
}
|
||||
|
||||
pvar->pvar_index = pvar_count;
|
||||
opal_hash_table_set_value_ptr (&mca_base_pvar_index_hash, pvar->name, strlen (pvar->name),
|
||||
(void *)(uintptr_t) pvar_count);
|
||||
(void *)(uintptr_t) pvar->pvar_index);
|
||||
|
||||
pvar_count++;
|
||||
ret = OPAL_SUCCESS;
|
||||
@ -330,7 +334,6 @@ int mca_base_pvar_register (const char *project, const char *framework, const ch
|
||||
}
|
||||
|
||||
pvar->ctx = ctx;
|
||||
pvar->pvar_index = pvar_count;
|
||||
|
||||
return pvar->pvar_index;
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user