mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Set name for all the isc_mem context
The memory context for isc_managers and dst_api units had no name and that was causing trouble with the statistics channel output. Set the name for the two memory context that were missing a proper name.
This commit is contained in:
parent
bc4a19acff
commit
5d264b3329
2 changed files with 2 additions and 0 deletions
|
|
@ -191,6 +191,7 @@ static isc_mem_t *dst__mctx = NULL;
|
|||
void
|
||||
dst__lib_initialize(void) {
|
||||
isc_mem_create(&dst__mctx);
|
||||
isc_mem_setname(dst__mctx, "dst");
|
||||
|
||||
dst__hmacmd5_init(&dst_t_func[DST_ALG_HMACMD5]);
|
||||
dst__hmacsha1_init(&dst_t_func[DST_ALG_HMACSHA1]);
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ isc_managers_create(isc_mem_t **mctxp, uint32_t workers,
|
|||
REQUIRE(mctxp != NULL && *mctxp == NULL);
|
||||
isc_mem_create(mctxp);
|
||||
INSIST(*mctxp != NULL);
|
||||
isc_mem_setname(*mctxp, "managers");
|
||||
|
||||
REQUIRE(loopmgrp != NULL && *loopmgrp == NULL);
|
||||
isc_loopmgr_create(*mctxp, workers, loopmgrp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue