瀏覽代碼

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

Julius Pfrommer 8 年之前
父節點
當前提交
682e94bc1b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);