]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use model_query() in db.*****_destroy
authorling-yun <zengyunling@huawei.com>
Sat, 30 Nov 2013 09:09:28 +0000 (17:09 +0800)
committerling-yun <zengyunling@huawei.com>
Tue, 3 Dec 2013 07:34:17 +0000 (15:34 +0800)
commitd54c49a22e3ce147003cc9a926b7b72e8dc9c1a8
tree31290e3f630eee8237631bb64032148e30a48c02
parent6a6fc11489ac7d57321df77eee7746db53ab3a6e
Use model_query() in db.*****_destroy

Use model_query() instead of session.query in db.volume_destroy,
db.volume_type_destroy, db.transfer_destroy and db.snapshot_destroy as
other methods use.
model_query function is the query helper which is used in most part of
cinder/db/sqlalchemy/api.py.

Change-Id: I97be252df9d40bb97231e3341d5cedec26af2d93
Closes-Bug: #1256483
cinder/db/sqlalchemy/api.py