Closed
Bug 299212
Opened 20 years ago
Closed 19 years ago
"already locked" errors should be more informative
Categories
(Bugzilla :: Database, enhancement, P3)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: glob, Assigned: LpSolit)
Details
Attachments
(1 file)
|
4.03 KB,
patch
|
glob
:
review+
|
Details | Diff | Splinter Review |
"already locked" errors should be more informative. we should show the existing locks and the requested locks.
Updated•20 years ago
|
Assignee: database → mkanat
Severity: normal → enhancement
Priority: -- → P3
Target Milestone: --- → Bugzilla 2.22
Version: unspecified → 2.19.3
| Assignee | ||
Comment 1•19 years ago
|
||
Looks like $self->{private_bz_tables_locked} should contain the list of tables
being locked instead of 0 or 1. Then calling Util::diff_arrays() on it and the
new tables list would immediately give you the additional tables you tried to lock.
I got this error message while adding several bugs at once to a group and this
information would help me a lot in debugging the code. Could we have it for 2.20
please? "No, we are frozen" is not an acceptable answer. :-p If you haven't
time, I could take it.
| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Target Milestone: Bugzilla 2.22 → Bugzilla 2.20
| Assignee | ||
Comment 3•19 years ago
|
||
Finally, I think that doing a diff between the old and new lists is less useful than dislaying both lists completely. Indeed, having the full list will help you to identify which lines of the code did, respectively try to do, the locking.
Attachment #188294 -
Flags: review?(bugzilla)
Comment on attachment 188294 [details] [diff] [review] patch, v1 r=glob
Attachment #188294 -
Flags: review?(bugzilla) → review+
| Assignee | ||
Updated•19 years ago
|
Flags: approval?
Updated•19 years ago
|
Flags: approval? → approval+
| Assignee | ||
Comment 5•19 years ago
|
||
Checking in Bugzilla/DB/Mysql.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm,v <-- Mysql.pm new revision: 1.23; previous revision: 1.22 done Checking in Bugzilla/DB/Pg.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm,v <-- Pg.pm new revision: 1.12; previous revision: 1.11 done Checking in template/en/default/global/code-error.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/global/code-error.html.tmpl,v <-- code-error.html.tmpl new revision: 1.51; previous revision: 1.50 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•