]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Delete snapshot metadata when snapshot is deleted
authorOllie Leahy <oliver.leahy@hp.com>
Wed, 17 Jul 2013 17:44:04 +0000 (17:44 +0000)
committerOllie Leahy <oliver.leahy@hp.com>
Wed, 17 Jul 2013 17:54:24 +0000 (17:54 +0000)
commitd8c193012adb5a4f08982324324260656752480b
tree227d24bb4bb23fde2be102c3920b331d942021a3
parente9b5abbaf67c8109d4548753bfd87480afe4a0a7
Delete snapshot metadata when snapshot is deleted

When a volume is deleted all rows in the volume_metadata table for that
volume are deleted as part of the database operation. This patch updates
the snapshot delete operation to delete corresponding rows in the
snapshot_metadata table.

Change-Id: I17543a82be370bed57d4165ad8756ccb390bc0d9
cinder/db/sqlalchemy/api.py
cinder/tests/test_volume.py