mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
bitbake: persist_data: close connection in SQLTable __exit__
A Connection's __exit__ does not close the connection, but rather deals with transactions. See https://docs.python.org/3/library/sqlite3.html#how-to-use-the-connection-context-manager This change is not necessary on 'master' because persist_data was removed. (Bitbake rev: a5640a2527cf1995e2afb80c95f303dea52c73b3) Signed-off-by: Chris Laplante <chris.laplante@agilent.com> (cherry picked from commit b0fba0f5af555ff970406b5cf3bf8fb113d953d1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
aeea31fea5
commit
d28c963ec4
@@ -154,6 +154,7 @@ class SQLTable(collections.abc.MutableMapping):
|
|||||||
|
|
||||||
def __exit__(self, *excinfo):
|
def __exit__(self, *excinfo):
|
||||||
self.connection.__exit__(*excinfo)
|
self.connection.__exit__(*excinfo)
|
||||||
|
self.connection.close()
|
||||||
|
|
||||||
@_Decorators.retry()
|
@_Decorators.retry()
|
||||||
@_Decorators.transaction
|
@_Decorators.transaction
|
||||||
|
|||||||
Reference in New Issue
Block a user