From: Francis Dupont Date: Tue, 7 Jul 2020 07:58:12 +0000 (+0200) Subject: [#1196] Added ChangeLog entry X-Git-Tag: Kea-1.7.10~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d5c4cc41ec4846287b06a6e326c3b27845d8602;p=thirdparty%2Fkea.git [#1196] Added ChangeLog entry --- diff --git a/ChangeLog b/ChangeLog index 5f2d3c61e2..45db194a0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1770. [func] fdupont + Added kea-admin lease-stat-recount command which recounts cached + statistics in MySQL and PostgreSQL lease databases. + (Gitlab #1196) + 1769. [build] fdupont Added detection of the musl libc which implements dlclose() as a no-operation: this behavior breaks Kea expectations for diff --git a/src/bin/admin/admin-utils.sh b/src/bin/admin/admin-utils.sh index 8771a5777b..8ec4b54023 100644 --- a/src/bin/admin/admin-utils.sh +++ b/src/bin/admin/admin-utils.sh @@ -161,6 +161,7 @@ INSERT INTO lease4_stat (subnet_id, state, leases) \ FROM lease4 WHERE state = 0 OR state = 1 \ GROUP BY subnet_id, state; \ COMMIT;" +export _RECOUNT4_QUERY # recount IPv6 leases from scratch _RECOUNT6_QUERY=\ @@ -172,4 +173,4 @@ INSERT INTO lease6_stat (subnet_id, lease_type, state, leases) \ FROM lease6 WHERE state = 0 OR state = 1 \ GROUP BY subnet_id, lease_type, state; \ COMMIT;" - +export _RECOUNT6_QUERY