It appears some situations require sqlite3 to open a temporary database
to execute the old database dump.
Fixes: https://tracker.ceph.com/issues/57851
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
8d853cc4990dc4dbccdc916115b0b30e0ac9dc19)
db.execute('PRAGMA JOURNAL_MODE = PERSIST')
db.execute('PRAGMA PAGE_SIZE = 65536')
db.execute('PRAGMA CACHE_SIZE = 64')
+ db.execute('PRAGMA TEMP_STORE = memory')
db.row_factory = sqlite3.Row
self.load_schema(db)
db.execute('PRAGMA JOURNAL_MODE = PERSIST')
db.execute('PRAGMA PAGE_SIZE = 65536')
db.execute('PRAGMA CACHE_SIZE = 256')
+ db.execute('PRAGMA TEMP_STORE = memory')
db.row_factory = sqlite3.Row
# check for legacy dump store
pool_param = cast(Union[int, str], poolid)