senlin/senlin
Jude Cross 0bdffc31b9 Add locking logic to database update/delete transactions
This patch removes all occurances of with_lockmode("update")
and replaces them with with_for_update(). with_for_update()
does the same thing as with_lockmode("update") (adds FOR
UPDATE to the sql statement).

This patch also addresses the action_acquire issue that can lead to
deadlocks. with_lockmode("update") will lock the entire table
leading up to the matching row when the unique ID of the row
is not specified. action_acquire_first_ready has been updated to
first seach for the unique ID and then lock the single row using
action_acquire.

Change-Id: I2637504c7d294b9993e8c90570974cef8c246fbf
2018-06-25 18:20:18 -07:00
..
api Fix node 'op' operation return vaule miss 'action' 2018-05-25 09:12:40 +08:00
cmd Change requirement assertion to 'must' 2017-05-16 04:26:35 -04:00
common Add locking logic to database update/delete transactions 2018-06-25 18:20:18 -07:00
db Add locking logic to database update/delete transactions 2018-06-25 18:20:18 -07:00
drivers Merge "Add nova profile support for vm migrate operation" 2018-06-05 17:04:52 +00:00
engine Add retry logic to post_lifecycle_hook_message 2018-06-06 17:13:18 -07:00
events Remove tox unit test warnings 2017-12-18 05:05:02 -05:00
hacking Add a hacking check rule 2016-11-24 15:26:04 +08:00
locale/de/LC_MESSAGES Imported Translations from Zanata 2018-03-09 06:45:50 +00:00
objects Fix object node role fields call error 2018-05-11 17:08:53 +08:00
policies Cleaned up logging 2018-04-02 19:42:10 -07:00
profiles Merge "Add nova profile support for vm migrate operation" 2018-06-05 17:04:52 +00:00
rpc Merge "Remove the temporary flag "rpc_use_object" in config.py" 2017-01-02 02:05:39 +00:00
tests Add locking logic to database update/delete transactions 2018-06-25 18:20:18 -07:00
__init__.py Fixed oslo.i18n namespace errors 2015-01-19 19:45:49 +08:00
version.py Initial verion 2014-12-14 18:08:05 +08:00