Closed Bug 398968 Opened 17 years ago Closed 17 years ago

editversions.cgi should use transactions for database interaction

Categories

(Bugzilla :: Database, defect)

3.1.2
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: emmanuel, Assigned: emmanuel)

References

Details

Attachments

(1 file, 1 obsolete file)

editversions.cgi should use bz_start_transaction/bz_commit_transaction instead of bz_lock_tables/bz_unlock_tables.
Assignee: database → eseyman
Status: NEW → ASSIGNED
Attachment #283972 - Flags: review?(mkanat)
Comment on attachment 283972 [details] [diff] [review] Replace locks by transactions That's unnecessary--I think update() already does transactions by itself. Anywhere that there's only a single update() or create() call, you don't need to use transactions or locks at all.
Attachment #283972 - Flags: review?(mkanat) → review-
Removing the calls seems to have no ill effect
Attachment #283972 - Attachment is obsolete: true
Attachment #283975 - Flags: review?(mkanat)
Comment on attachment 283975 [details] [diff] [review] Remove calls to bz_lock_tables and bz_unlock_tables Oh wait, I'm a liar. This actually doesn't use transactions yet, because it's not really using Bugzilla::Object.
Attachment #283975 - Flags: review?(mkanat) → review-
Comment on attachment 283972 [details] [diff] [review] Replace locks by transactions This patch is correct.
Attachment #283972 - Attachment is obsolete: false
Attachment #283972 - Flags: review- → review+
Attachment #283975 - Attachment is obsolete: true
Flags: approval+
Checking in editversions.cgi; /cvsroot/mozilla/webtools/bugzilla/editversions.cgi,v <-- editversions.cgi new revision: 1.55; previous revision: 1.54 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 3.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: