glance/glance
Matthew Treinish c09d157960
Add external lock to image cache sqlite driver db init
This commit adds an external lock to sqlite when launching multiple
worker processes (using uwsgi) the db init will fail for one since the 2
workers will race for initializing the DB. The method is idempotent so
we can safely run it twice in succession, but the lock is necessary to
provides us protection against running it at the same time.

Depends-On: I9a66a8636d12037ff9aa4fb73cc3f9b9343dd7e9
Change-Id: I654c3a5604a89402ba94d9cea44699a48583a7e0
2017-06-18 03:52:18 -04:00
..
api Merge "Remove use of config enforce_type=True" 2017-06-13 17:33:09 +00:00
async Merge "Remove usage of parameter enforce_type" 2017-06-12 21:24:23 +00:00
cmd Merge "Remove usage of parameter enforce_type" 2017-06-12 21:24:23 +00:00
common Merge "Add import endpoint to initiate image import" 2017-06-09 18:10:21 +00:00
db Merge "Fix experimental E-M-C migrations" 2017-04-05 21:16:22 +00:00
domain Add import endpoint to initiate image import 2017-05-29 13:20:35 +01:00
hacking Stop enforcing translations on logs 2017-05-31 11:35:53 +01:00
image_cache Add external lock to image cache sqlite driver db init 2017-06-18 03:52:18 -04:00
locale Imported Translations from Zanata 2016-10-15 09:24:52 +00:00
quota Add __ne__ built-in function 2016-07-13 15:33:39 +08:00
registry Use HostAddressOpt for opts that accept IP and hostnames 2017-03-09 19:48:21 +00:00
tests Add external lock to image cache sqlite driver db init 2017-06-18 03:52:18 -04:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Use oslo.context features 2016-07-12 13:40:33 +10:00
gateway.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
i18n.py Drop use of 'oslo' namespace package 2015-04-28 18:57:45 +00:00
location.py Merge "Fixed indentation" 2016-10-20 14:36:35 +00:00
notifier.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
opts.py Glare-ectomy 2017-03-01 21:46:52 +00:00
schema.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
scrubber.py Handling scrubber's exit in non-daemon mode. 2017-01-31 20:06:47 +00:00
version.py Remove vim header 2014-01-14 16:03:28 +00:00