Comment 7 for bug 1496747

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

Reviewed: https://review.openstack.org/225701
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=0e66d3ea1ec83be3e42726063198183097d40cde
Submitter: Jenkins
Branch: master

commit 0e66d3ea1ec83be3e42726063198183097d40cde
Author: Michal Dulko <email address hidden>
Date: Mon Sep 21 15:58:01 2015 +0200

    Replace soft_delete in volume_type_access_remove

    This commit replaces oslo.db's soft_delete used in
    volume_type_access_remove in db.api with a simple update setting
    deleted column to True.

    As deleted column is boolean it is represented in the DB by TINYINT,
    which max value is 127. This introduces problems when removing records
    with id higher than that, because soft_delete sets deleted column to the
    value of id. This commit fixes the issue and adds unit tests for such
    case.

    Change-Id: I484e66125b5a29f490c070696b336be4a2693b3e
    Closes-Bug: 1496747