Explorar el Código

removing enforcing NameSpaceId in BrowseName, relates to #284

Stasik0 hace 9 años
padre
commit
d0e09b24ff
Se han modificado 2 ficheros con 0 adiciones y 5 borrados
  1. 0 3
      src/server/ua_nodestore.c
  2. 0 2
      src/server/ua_nodestore_concurrent.c

+ 0 - 3
src/server/ua_nodestore.c

@@ -259,9 +259,6 @@ UA_StatusCode UA_NodeStore_insert(UA_NodeStore *ns, UA_Node *node, const UA_Node
         if(node->nodeId.namespaceIndex==0) //original request for ns=0 should yield ns=1
             node->nodeId.namespaceIndex=1;
 
-        //set namespaceIndex in browseName in case id is generated
-        node->browseName.namespaceIndex=node->nodeId.namespaceIndex;
-
         UA_Int32 identifier = ns->count+1; // start value
         UA_Int32 size = ns->size;
         hash_t increase = mod2(identifier, size);

+ 0 - 2
src/server/ua_nodestore_concurrent.c

@@ -178,8 +178,6 @@ UA_StatusCode UA_NodeStore_insert(UA_NodeStore *ns, UA_Node *node, const UA_Node
         if(((UA_Node *)&entry->node)->nodeClass==UA_NODECLASS_VARIABLE){ //set namespaceIndex in browseName in case id is generated
         	((UA_VariableNode*)&entry->node)->browseName.namespaceIndex=((UA_Node *)&entry->node)->nodeId.namespaceIndex;
         }
-        //set namespaceIndex in browseName in case id is generated
-        ((UA_Node *)&entry->node)->browseName.namespaceIndex=node->nodeId.namespaceIndex;
 
         unsigned long identifier;
         long before, after;