[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:
Fabio Erculiani
2012-07-02 23:40:03 +02:00
parent 0596e92e53
commit fb5cb00b9d

View File

@@ -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):