[Rpm-maint] [rpm-software-management/rpm] DB is inconsistent (#917)

Michael Schroeder notifications at github.com
Tue Oct 29 10:07:20 UTC 2019


Note that from a high level perspective, rpm does not need transactions. It only has to database operations "insert header into database" and "remove header from database" and only does one operation at a time.

It should be up to the database to keep the index table in sync. Now, rpm's index tables are somewhat complex, so rpm manages its indexes by itself. That's where database transactions come into play. But it's also sufficient to not do any transaction rollbacks but instead just detect if the indexes are out of sync and then rebuild the indexes. That's the strategy used by the ndb backend.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/917#issuecomment-547346630
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191029/424ae2a9/attachment.html>


More information about the Rpm-maint mailing list