]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve-check: close cursors as soon as possible
authorRoss Burton <ross.burton@arm.com>
Fri, 26 Aug 2022 17:35:47 +0000 (18:35 +0100)
committerSteve Sakoman <steve@sakoman.com>
Wed, 7 Sep 2022 14:40:43 +0000 (04:40 -1000)
commit48742ddf4d0acd419c8ffb8f22124ed525efc2d9
tree2e468d895eff1e9bc8cc93bf283e90f2d423e262
parent374dd13db2c4fa92793f12c93d68d09304f77c17
cve-check: close cursors as soon as possible

We can have multiple processes reading the database at the same time, and
cursors only release their locks when they're garbage collected.

This might be the cause of random sqlite errors on the autobuilder, so
explicitly close the cursors when we're done with them.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
(cherry picked from commit 5d2e90e4a58217a943ec21140bc2ecdd4357a98a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/cve-check.bbclass
meta/recipes-core/meta/cve-update-db-native.bb