- Add Open_Flag args to ND_DataStruct() API calls.
This commit is contained in:
parent
dbbca69430
commit
949ebe54fe
@ -118,7 +118,7 @@ SMT_Status SM_Library_Open_I( int Instance, const char *Context, SMT_Flags O
|
||||
|
||||
/* Ouverture de la liste des heaps ouverts (locale) */
|
||||
|
||||
rc = ND_DataStruct_Open( &Opened_Heap_List, "SM Opened Heap", 1, &index_type, "SM_Opened_Heap_List_Manager", NULL, NULL, TRUE, NULL);
|
||||
rc = ND_DataStruct_Open( &Opened_Heap_List, "SM Opened Heap", ND_OPEN_FLAG_CREATE, 1, &index_type, "SM_Opened_Heap_List_Manager", NULL, NULL, TRUE, NULL);
|
||||
if( rc != NDS_OK)
|
||||
{
|
||||
LG_LOG_ERROR_0( "SM_Library_Open : unable to create the local opened heap cache");
|
||||
@ -167,7 +167,7 @@ SMT_Status SM_Library_Open_I( int Instance, const char *Context, SMT_Flags O
|
||||
|
||||
/* Ouverture de la liste des heaps ouverts (locale) */
|
||||
|
||||
rc = ND_DataStruct_Open( &Opened_Heap_List, "SM Opened Heap", 1, &index_type, "SM_Opened_Heap_List_Manager", NULL, NULL, TRUE, NULL);
|
||||
rc = ND_DataStruct_Open( &Opened_Heap_List, "SM Opened Heap", ND_OPEN_FLAG_CREATE, 1, &index_type, "SM_Opened_Heap_List_Manager", NULL, NULL, TRUE, NULL);
|
||||
if( rc != NDS_OK)
|
||||
{
|
||||
LG_LOG_ERROR_0( "Unable to create the local opened heap cache");
|
||||
@ -2532,7 +2532,7 @@ SMT_Status SM_Base_Init ( void )
|
||||
|
||||
// rc = ND_DataStruct_Open( &( SM_Base->MHR), 1, &index_type, "MHR_Manager", NULL, "SM_Base_Alloc", NULL, "SM_Base_Free", NULL, TRUE, NULL);
|
||||
|
||||
if( ( rc = ND_DataStruct_Open( &( SM_Base->MHR), "SHM-MHR", 1, &index_type, "MHR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
|
||||
if( ( rc = ND_DataStruct_Open( &( SM_Base->MHR), "SHM-MHR", ND_OPEN_FLAG_CREATE, 1, &index_type, "MHR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
|
||||
{
|
||||
LG_LOG_ERROR_0( "Unable to create the MHR structure");
|
||||
|
||||
@ -3456,7 +3456,7 @@ NDT_Status MHR_Manager( NDT_Root *Root_Ptr, NDT_Index_Id Index_Id, NDT_Node
|
||||
|
||||
// rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->DSR), 1, &index_type, "SM_DSR_Manager", NULL, SM_Base->MHR->Allocator_Name, NULL, SM_Base->MHR->Deallocator_Name, NULL, TRUE, NULL);
|
||||
|
||||
if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->DSR), "SHM-DSR", 1, &index_type, "SM_DSR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
|
||||
if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->DSR), "SHM-DSR", ND_OPEN_FLAG_CREATE, 1, &index_type, "SM_DSR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
|
||||
{
|
||||
LG_LOG_ERROR_0( "Unable to create the DSR structure");
|
||||
goto Error4;
|
||||
@ -3471,7 +3471,7 @@ NDT_Status MHR_Manager( NDT_Root *Root_Ptr, NDT_Index_Id Index_Id, NDT_Node
|
||||
|
||||
// rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->ACR), 1, &index_type, "SM_ACR_Manager", NULL, SM_Base->MHR->Allocator_Name, NULL, SM_Base->MHR->Deallocator_Name, NULL, TRUE, NULL);
|
||||
|
||||
if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->ACR), "SHM-ACR", 1, &index_type, "SM_ACR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
|
||||
if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->ACR), "SHM-ACR", ND_OPEN_FLAG_CREATE, 1, &index_type, "SM_ACR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
|
||||
{
|
||||
LG_LOG_ERROR_0( "Unable to create the ACR structure");
|
||||
goto Error5;
|
||||
@ -3487,7 +3487,7 @@ NDT_Status MHR_Manager( NDT_Root *Root_Ptr, NDT_Index_Id Index_Id, NDT_Node
|
||||
|
||||
// rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->FCR), 1, &index_type, "SM_FCR_Manager", NULL, SM_Base->MHR->Allocator_Name, NULL, SM_Base->MHR->Deallocator_Name, NULL, TRUE, NULL);
|
||||
|
||||
if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->FCR), "SHM-FCR", 1, &index_type, "SM_FCR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
|
||||
if( ( rc = ND_DataStruct_Open( &( ( *MHH_Ptr_Ptr)->FCR), "SHM-FCR", ND_OPEN_FLAG_CREATE, 1, &index_type, "SM_FCR_Manager", NULL, SMG_DataStruct_Handlers, TRUE, NULL)) != NDS_OK)
|
||||
{
|
||||
LG_LOG_ERROR_0( "Unable to create the FCR structure");
|
||||
goto Error6;
|
||||
|
Loading…
Reference in New Issue
Block a user