]> git.ipfire.org Git - thirdparty/unbound.git/commit
I found that in function lruhash_remove, table was locked at first ,then lru_remove... 399/head
authorxiangbao227 <1004129700@qq.com>
Wed, 13 Jan 2021 02:33:41 +0000 (10:33 +0800)
committerxiangbao227 <1004129700@qq.com>
Wed, 13 Jan 2021 02:33:41 +0000 (10:33 +0800)
commit93e5705259d4ebc4131b46ffee4e68163d171f04
tree805f34d4369464e793f4b01def65c43f29e949b2
parent4d1d8b4cddfde95d50bf3a4f5dcfe36f652c2f58
I found that in function lruhash_remove, table was locked at first ,then lru_remove the entry , then unlock the table, and then markdel entry , but in function rrset_cache_touch , the entry will be touched to lru again before markdelling entry in function lruhash_remove. This is a bug!
util/storage/lruhash.c