]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Sep 2022 14:54:45 +0000 (15:54 +0100)
commit5d2e90e4a58217a943ec21140bc2ecdd4357a98a
tree331336a786ce014be2f9ef4b8f0999e4eec232a2
parentc54f3847349173ed3a8e77a5c2732e1bbcddd540
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>
meta/classes/cve-check.bbclass
meta/recipes-core/meta/cve-update-db-native.bb