mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-02 14:28:45 +02:00
LRU touch of RRsets. Pretty complicated to do.
git-svn-id: file:///svn/unbound/trunk@324 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -62,7 +62,7 @@ static size_t test_sizefunc(void*, void*);
|
||||
/** comparefunc for lruhash */
|
||||
static int test_compfunc(void*, void*);
|
||||
/** delkey for lruhash */
|
||||
static void test_delkey(void*, void*);
|
||||
static void test_delkey(void*, void*, int);
|
||||
/** deldata for lruhash */
|
||||
static void test_deldata(void*, void*);
|
||||
/* --- end test representation --- */
|
||||
@@ -404,8 +404,9 @@ static int test_compfunc(void* key1, void* key2)
|
||||
return -1;
|
||||
}
|
||||
|
||||
static void test_delkey(void* key, void* ATTR_UNUSED(arg))
|
||||
static void test_delkey(void* key, void* ATTR_UNUSED(arg), int l)
|
||||
{
|
||||
if(l) lock_rw_unlock(&((struct slabtestkey*)key)->entry.lock);
|
||||
delkey((struct slabtestkey*)key);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user