]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - config/cfgroot/location-functions.pl
location-functions.pl: Use a single script-wide db_handle.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 7 Nov 2020 18:47:20 +0000 (19:47 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Nov 2020 14:06:53 +0000 (14:06 +0000)
commitb62d7e0cc71cc1ff23d66dd8baf0f5f3c5c7a29b
treec3140822d8a5219ebd943a3bc2f77d6a7e88c3c3
parent9141282b09db282ae202302e25da4ed924e8deec
location-functions.pl: Use a single script-wide db_handle.

Create and use a single script-wide database handle for libloc to
prevent from creating multiple ones.

This helps saving memory, especially on small systems.

Reference #12515.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/location-functions.pl