[entropy.db] make sure to commit() at the end of createAllIndexes()
It has been found that with the new baseinfo, extrainfo SCHEMA, createAllIndexes() deadlocks at the ANALYZE statement. Committing any previous transaction before calling ANALYZE fixes the issue.
This commit is contained in:
@@ -5657,6 +5657,9 @@ class EntropyRepository(EntropyRepositoryBase):
|
||||
self._createLicensesIndex()
|
||||
self._createCategoriesIndex()
|
||||
self._createCompileFlagsIndex()
|
||||
# make sure to commit here, or ANALYZE below
|
||||
# might deadlock
|
||||
self.commit(force=True)
|
||||
self._cursor().execute("ANALYZE").fetchall()
|
||||
|
||||
def _createMirrorlinksIndex(self):
|
||||
|
||||
Reference in New Issue
Block a user