invirt rarely uses database transactions

Bug #388149 reported by Evan Broder on 2009-06-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Invirt Project
Undecided
Unassigned

Bug Description

We should rework our database code to commit transactions instead of using session.flush. Then we should set autoflush=True, autocommit=False in our session initialization.

Evan Broder (broder) wrote :

One example of a benefit from fixing this bug: invirt-images could hold off on committing the transaction to add a new CD until the image had actually been downloaded and copied over, keeping images from showing up in users' dropdowns while the download was still running.

I'm sure you all can come up with many others.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers