sushy-tools/sushy_tools
Dmitry Tantsur 8d52482c79 Make memoize behave better in concurrent environments
Currently there is a chance for System view to raise sqlite3
exceptions because of table lock in PersistentDict.

1) Stop re-loading content on PersistentDict creation.
2) Retry OperationalError on all database accesses.
3) Rule out a race condition in __delitem__

Also refactor tests to remove excessive mocking.

Change-Id: I82726c41578700835f3b15d316aed562d68fbf67
2020-12-03 15:24:35 +01:00
..
emulator Make memoize behave better in concurrent environments 2020-12-03 15:24:35 +01:00
static Cleanup shebang line 2018-07-17 18:51:18 +03:00
tests Make memoize behave better in concurrent environments 2020-12-03 15:24:35 +01:00
__init__.py Initial Commit 2017-04-06 17:05:16 +01:00
error.py Add get/set_boot_image to libvirt driver 2019-07-02 16:13:05 +02:00