ha/service-mgmt/sm-db
Bin Qian 05a01c2100 Fix SQLite3 concurrent access issue
SQLite3 does not support concurrent access with multiple connections
that have writeable access. Currently SM opens database connections
with full access, which causes concurrent issue.

This fix includes:
1. open readonly connection whenever the write permission is not needed
2. remove code that open connections that are not being used
3. remove reattempt and loggings from previous partial fix

Now all writable connections are opened and used in main thread, this
can ensure no more concurrent issue.

Closes-Bug: 1915894
Signed-off-by: Bin Qian <bin.qian@windriver.com>
Change-Id: I200647a3733ac899b0b7498abd52992c7a87bd32
2021-03-18 11:08:27 -04:00
..
centos Add auto-version for remaining stx/ha packages 2020-12-17 13:27:02 -05:00
database Merge "Create device-image-fs SM service" 2021-03-03 19:18:54 +00:00
opensuse openSUSE: Open Build Service Artifacts 2019-10-09 10:05:20 -05:00
src Fix SQLite3 concurrent access issue 2021-03-18 11:08:27 -04:00
LICENSE Remove version from sm-db folder 2019-09-26 14:08:15 -05:00
Makefile Remove version from sm-db folder 2019-09-26 14:08:15 -05:00