← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1539006] [NEW] Unused exception and unnecessary actions in the db

 

Public bug reported:

Do update the image when you delete an image from the database to. Then,
caught exception ImageNotFound and Forbidden. The check of access takes
place at higher layer domain model. This code is obsolete. Extra
updating image  increases the load on the db.

https://github.com/openstack/glance/blob/master/glance/db/__init__.py#L285-L295
https://github.com/openstack/glance/blob/master/glance/db/__init__.py#L278

** Affects: glance
     Importance: Undecided
     Assignee: Darja Shakhray (dshakhray)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Darja Shakhray (dshakhray)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1539006

Title:
  Unused exception and unnecessary actions in the db

Status in Glance:
  New

Bug description:
  Do update the image when you delete an image from the database to.
  Then, caught exception ImageNotFound and Forbidden. The check of
  access takes place at higher layer domain model. This code is
  obsolete. Extra updating image  increases the load on the db.

  https://github.com/openstack/glance/blob/master/glance/db/__init__.py#L285-L295
  https://github.com/openstack/glance/blob/master/glance/db/__init__.py#L278

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1539006/+subscriptions


Follow ups