Pārlūkot izejas kodu

slots with a tombstone entry don't have to be deleted entirely

Julius Pfrommer 8 gadi atpakaļ
vecāks
revīzija
682e94bc1b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/server/ua_nodestore.c

+ 1 - 1
src/server/ua_nodestore.c

@@ -196,7 +196,7 @@ UA_NodeStore_delete(UA_NodeStore *ns) {
     UA_UInt32 size = ns->size;
     UA_NodeStoreEntry **entries = ns->entries;
     for(UA_UInt32 i = 0; i < size; i++) {
-        if(entries[i])
+        if(entries[i] > UA_NODESTORE_TOMBSTONE)
             deleteEntry(entries[i]);
     }
     UA_free(ns->entries);