mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Set SHM ECS memory usage to 0 when module not loaded.
git-svn-id: file:///svn/unbound/trunk@4111 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
1c02193ddb
commit
4b39a9eaf8
2 changed files with 2 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
forwarding ECS.
|
forwarding ECS.
|
||||||
- Properly check for allocation failure in local_data_find_tag_datas.
|
- Properly check for allocation failure in local_data_find_tag_datas.
|
||||||
- Fix #1249: unbound doesn't return FORMERR to bogus ECS.
|
- Fix #1249: unbound doesn't return FORMERR to bogus ECS.
|
||||||
|
- Set SHM ECS memory usage to 0 when module not loaded.
|
||||||
|
|
||||||
11 April 2017: Ralph
|
11 April 2017: Ralph
|
||||||
- Display ECS module memory usage.
|
- Display ECS module memory usage.
|
||||||
|
|
|
||||||
|
|
@ -263,6 +263,7 @@ void shm_main_run(struct worker *worker)
|
||||||
shm_stat->mem.iter = (*worker->env.mesh->mods.mod[modstack]->get_mem)(&worker->env, modstack);
|
shm_stat->mem.iter = (*worker->env.mesh->mods.mod[modstack]->get_mem)(&worker->env, modstack);
|
||||||
}
|
}
|
||||||
#ifdef CLIENT_SUBNET
|
#ifdef CLIENT_SUBNET
|
||||||
|
shm_stat->mem.subnet = 0;
|
||||||
modstack = modstack_find(&worker->env.mesh->mods, "subnet");
|
modstack = modstack_find(&worker->env.mesh->mods, "subnet");
|
||||||
if(modstack != -1) {
|
if(modstack != -1) {
|
||||||
fptr_ok(fptr_whitelist_mod_get_mem(worker->env.mesh->mods.mod[modstack]->get_mem));
|
fptr_ok(fptr_whitelist_mod_get_mem(worker->env.mesh->mods.mod[modstack]->get_mem));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue