mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
BUG/MINOR: lru: fix the standalone test case for invalid revision
In 2.6, a build issue for LRU in standalone test mode was addressed by
commit bf9c07fd9
("BUILD/DEBUG: lru: update the standalone code to
support the revision"), but using revision 1 while looking up rev 0
results in 100% misses. Let's fix this and commit with revision 0 as
well.
No backport is needed, this only happens when hacking on the code.
This commit is contained in:
parent
985d458571
commit
da6bb13790
@ -258,7 +258,7 @@ static long get_value(struct lru64_head *lru, long a)
|
|||||||
/* do the painful work here */
|
/* do the painful work here */
|
||||||
a = sum(a);
|
a = sum(a);
|
||||||
if (item)
|
if (item)
|
||||||
lru64_commit(item, (void *)a, lru, 1, 0);
|
lru64_commit(item, (void *)a, lru, 0, 0);
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user