Explorar el Código

don't replace the namespace when setting a random nodeid

Julius Pfrommer hace 7 años
padre
commit
6c8d7eaf0c
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      plugins/ua_nodestore_default.c

+ 0 - 2
plugins/ua_nodestore_default.c

@@ -330,8 +330,6 @@ UA_NodeMap_insertNode(void *context, UA_Node *node,
     if(tempNodeid.identifierType == UA_NODEIDTYPE_NUMERIC &&
        tempNodeid.identifier.numeric == 0) {
         /* create a random nodeid */
-        if(node->nodeId.namespaceIndex == 0)
-            node->nodeId.namespaceIndex = 1;
         UA_UInt32 identifier = ns->count+1; // start value
         UA_UInt32 size = ns->size;
         UA_UInt32 increase = mod2(identifier, size);