Comment 2 for bug 1031842

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/10663
Committed: http://github.com/openstack/glance/commit/a30887aa3b7a220a1f722e94fa69201e5878e766
Submitter: Jenkins
Branch: master

commit a30887aa3b7a220a1f722e94fa69201e5878e766
Author: Tom Hancock <email address hidden>
Date: Wed Aug 1 15:58:46 2012 +0000

    ^c shouldn't leave incomplete images in cache

    Fixes LP bug 1031842

    Use a finally clause for the xattr and sqlite
    image cache implementations of open_for_write()
    such that if the commit() or rollback() aren't
    called and the image remains in the incomplete
    dir that it is moved to the invalid dir

    Change-Id: Id9a0ac56a8ae9fd03af9ccc4989c9b304c95bdde