summaryrefslogtreecommitdiffstats
path: root/nova/notifications.py
diff options
context:
space:
mode:
authorBoris Pavlovic <boris@pavlovic.me>2012-12-19 15:06:17 +0400
committerBoris Pavlovic <boris@pavlovic.me>2012-12-22 02:12:54 +0400
commit6d38a6145e4ded084d72714549d7f9b613c6936c (patch)
treed1bc37826c7d3563bcf7ba06ada889f4e0f4a48a /nova/notifications.py
parenteda851676d14956c03616e5b2cb856acdc8edbef (diff)
downloadnova-6d38a6145e4ded084d72714549d7f9b613c6936c.tar.gz
nova-6d38a6145e4ded084d72714549d7f9b613c6936c.tar.xz
nova-6d38a6145e4ded084d72714549d7f9b613c6936c.zip
Using query.soft_delete() method insead of soft deleting by hand
Change all occurences of: query.update({ deleted:True, 'deleted_at': timeutils.utcnow(), 'updated_at': literal_column('updated_at')}) to: query.soft_delete() Make instance_type_access_remove() with 2 db requests instead of 3 Make agent_build_destroy() with 1 db request instead of 2 Fix bug in aggregate_delete() added missing transaction make it with 2 db requests instead of 3 Make aggregate_metadata_delete() with 1 db request instead of 2 Make aggregate_host_delete() with 1 db request instead of 2 blueprint db-session-cleanup Change-Id: I23a85c48474126743c5d02f642baf6047358aae8
Diffstat (limited to 'nova/notifications.py')
0 files changed, 0 insertions, 0 deletions