summaryrefslogtreecommitdiffstats
path: root/main/migrations/0055_unique_package_in_repo.py
AgeCommit message (Collapse)AuthorFilesLines
2011-11-17Ensure reporead is protected against simultaneous runsDan McGee1-0/+155
This adds a bunch of transaction magic and SELECT FOR UPDATE stuff to reporead to cope with the now-concurrent runs of reporead we get when invoked from our inotify-based updater. The collision occurs with 'any' architecture packages as both repo databases contain the new version, and the updates occur at exactly the same time. Signed-off-by: Dan McGee <dan@archlinux.org>