mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
set names on mempools
This commit is contained in:
parent
0a595c94a4
commit
0583bf2d0a
@ -505,6 +505,7 @@ dns_message_create(isc_mem_t *mctx, unsigned int intent, dns_message_t **msgp)
|
||||
goto cleanup;
|
||||
isc_mempool_setfreemax(m->namepool, NAME_COUNT);
|
||||
isc_mempool_setfillcount(m->namepool, NAME_COUNT);
|
||||
isc_mempool_setname(m->namepool, "msg:names");
|
||||
|
||||
result = isc_mempool_create(m->mctx, sizeof(dns_rdataset_t),
|
||||
&m->rdspool);
|
||||
@ -512,6 +513,7 @@ dns_message_create(isc_mem_t *mctx, unsigned int intent, dns_message_t **msgp)
|
||||
goto cleanup;
|
||||
isc_mempool_setfreemax(m->rdspool, NAME_COUNT);
|
||||
isc_mempool_setfillcount(m->rdspool, NAME_COUNT);
|
||||
isc_mempool_setname(m->rdspool, "msg:rdataset");
|
||||
|
||||
dynbuf = NULL;
|
||||
result = isc_buffer_allocate(mctx, &dynbuf, SCRATCHPAD_SIZE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user