BUG/MINOR: 51d: Releases workset back to pool.

The workset is now released correctly when a cache hit occurs.

This should be backported to 1.6.
This commit is contained in:
ben@51degrees.com 2016-01-08 13:48:37 +00:00 committed by Willy Tarreau
parent c9dfa24808
commit 6baceb9f64

View File

@ -384,6 +384,7 @@ static int _51d_fetch(const struct arg *args, struct sample *smp, const char *kw
lru = lru64_get(_51d_req_hash(args, ws),
_51d_lru_tree, (void*)args, 0);
if (lru && lru->domain) {
fiftyoneDegreesWorksetPoolRelease(global._51degrees.pool, ws);
_51d_retrieve_cache_entry(smp, lru);
return 1;
}