Don't delete all the non-tombstone entries every 10mins!
This commit is contained in:
1 parent
9ab2da8deb
commit
1a4b38a10c
3 files changed
+5
-1
No files matched your search
@@ -176,7 +176,7 @@ func (n *Nameserver) deleteTombstones() {
|
||||
defer n.Unlock()
|
||||
now := time.Now().Unix()
|
||||
n.entries.filter(func(e *Entry) bool {
|
||||
return now-e.Tombstone <= int64(tombstoneTimeout/time.Second)
|
||||
return e.Tombstone == 0 || now-e.Tombstone <= int64(tombstoneTimeout/time.Second)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user