mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-02-02 14:20:01 +00:00
Fixed standby memory page counters on shutdown
Bug introduced by commit 38278d94ba0a179d5eeb061a59850a4e1c150e5b.
This commit is contained in:
parent
542f24555d
commit
f9e098c98a
@ -60,7 +60,7 @@ alloc_page(void)
|
||||
|
||||
node *n = HEAD(fp->list);
|
||||
rem_node(n);
|
||||
if (!shutting_down && (--fp->cnt < fp->min))
|
||||
if ((--fp->cnt < fp->min) && !shutting_down)
|
||||
ev_send(&global_work_list, fp->cleanup);
|
||||
|
||||
void *ptr = n - FP_NODE_OFFSET;
|
||||
@ -89,7 +89,7 @@ free_page(void *ptr)
|
||||
|
||||
memset(n, 0, sizeof(node));
|
||||
add_tail(&fp->list, n);
|
||||
if (!shutting_down && (++fp->cnt > fp->max))
|
||||
if ((++fp->cnt > fp->max) && !shutting_down)
|
||||
ev_send(&global_work_list, fp->cleanup);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user