Don't trigger an upgrade when there's already one in progress
Bug #844480 reported by
Richard Mansfield
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Richard Mansfield |
Bug Description
When an upgrade is in progress, and someone hits the admin/upgrade.php page, Mahara stupidly starts a second upgrade. The second upgrade usually fails, but we need to stop this from happening, because it could potentially result in inconsistencies.
Changed in mahara: | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Richard Mansfield (richard-mansfield) |
milestone: | none → 1.5.0 |
description: | updated |
Changed in mahara: | |
status: | In Progress → Fix Committed |
tags: | added: upgrade |
To post a comment you must log in.
Reviewed: https:/ /reviews. mahara. org/635 gitorious. org/mahara/ mahara/ commit/ b5713230f85e943 98af158c07dcc69 17214d6505
Committed: http://
Submitter: Francois Marier (<email address hidden>)
Branch: master
commit b5713230f85e943 98af158c07dcc69 17214d6505
Author: Richard Mansfield <email address hidden>
Date: Fri Sep 2 15:38:41 2011 +1200
Prevent multiple simultaneous upgrades (bug #844480)
When an upgrade is running, prevent requests for admin/upgrade.php
from immediately starting up a second unwanted upgrade by inserting
a record in the config table. Nothing is done on fresh installs,
because the config table won't exist.
Change-Id: Ib82505d04fcb90 b0ccbb461acd0d0 b4646460498
Signed-off-by: Richard Mansfield <email address hidden>