Closed
Bug 398968
Opened 17 years ago
Closed 17 years ago
editversions.cgi should use transactions for database interaction
Categories
(Bugzilla :: Database, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.2
People
(Reporter: emmanuel, Assigned: emmanuel)
References
Details
Attachments
(1 file, 1 obsolete file)
674 bytes,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
editversions.cgi should use bz_start_transaction/bz_commit_transaction instead of
bz_lock_tables/bz_unlock_tables.
Assignee | ||
Comment 1•17 years ago
|
||
Comment 2•17 years ago
|
||
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-
Assignee | ||
Comment 3•17 years ago
|
||
Removing the calls seems to have no ill effect
Attachment #283972 -
Attachment is obsolete: true
Attachment #283975 -
Flags: review?(mkanat)
Comment 4•17 years ago
|
||
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 5•17 years ago
|
||
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+
Updated•17 years ago
|
Attachment #283975 -
Attachment is obsolete: true
Updated•17 years ago
|
Flags: approval+
Comment 6•17 years ago
|
||
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
Updated•17 years ago
|
Blocks: bz-transactions
You need to log in
before you can comment on or make changes to this bug.
Description
•