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.
Reviewed: https:/ /review. openstack. org/225701 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=0e66d3ea1ec 83be3e427260631 98183097d40cde
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0e66d3ea1ec83be 3e4272606319818 3097d40cde
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 type_access_ remove in db.api with a simple update setting
volume_
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: I484e66125b5a29 f490c070696b336 be4a2693b3e
Closes-Bug: 1496747