Closed Bug 398707 Opened 17 years ago Closed 17 years ago

whine.pl should use transactions for database interaction

Categories

(Bugzilla :: Whining, 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)

whine.pl should use bz_start_transaction/bz_commit_transaction instead of bz_lock_tables/bz_unlock_tables.
OS: Linux → All
Hardware: PC → All
Attached patch Replace locks by transactions (obsolete) — Splinter Review
Replace bz_lock_tables by bz_start_transaction.
Replace bz_unlock_tables by bz_commit_transaction.
Assignee: whining → eseyman
Status: NEW → ASSIGNED
Attachment #283706 - Flags: review?(mkanat)
Comment on attachment 283706 [details] [diff] [review]
Replace locks by transactions

>+        $dbh->bz_start_transaction('whine_schedules WRITE',

bz_start_transaction() takes no argument.
Attachment #283706 - Flags: review?(mkanat) → review-
Attachment #283706 - Attachment is obsolete: true
Attachment #283716 - Flags: review?(mkanat)
Comment on attachment 283716 [details] [diff] [review]
Once more, having read the documentation this time

Looks good to me.
Attachment #283716 - Flags: review?(mkanat) → review+
Flags: approval+
Target Milestone: --- → Bugzilla 3.2
Checking in whine.pl;
/cvsroot/mozilla/webtools/bugzilla/whine.pl,v  <--  whine.pl
new revision: 1.34; previous revision: 1.33
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: