MINOR: cache: use pool_alloc(), not pool_alloc_dirty()
pool_alloc_dirty() is the version below pool_alloc() that never performs the memory poisonning. It should only be called directly for very large unstructured areas for which enabling memory poisonning would not bring anything but could significantly hurt performance (e.g. buffers). Using this function here will not provide any benefit and will hurt the ability to debug. It would be desirable to backport this, although it does not cause any user-visible bug, it just complicates debugging.
This commit is contained in:
parent
18f43d85a0
commit
acc5b011e5
|
@ -493,7 +493,7 @@ cache_store_strm_init(struct stream *s, struct filter *filter)
|
|||
{
|
||||
struct cache_st *st;
|
||||
|
||||
st = pool_alloc_dirty(pool_head_cache_st);
|
||||
st = pool_alloc(pool_head_cache_st);
|
||||
if (st == NULL)
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue