Closed Bug 299212 Opened 20 years ago Closed 19 years ago

"already locked" errors should be more informative

Categories

(Bugzilla :: Database, enhancement, P3)

2.19.3
enhancement

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: glob, Assigned: LpSolit)

Details

Attachments

(1 file)

"already locked" errors should be more informative.

we should show the existing locks and the requested locks.
Assignee: database → mkanat
Severity: normal → enhancement
Priority: -- → P3
Target Milestone: --- → Bugzilla 2.22
Version: unspecified → 2.19.3
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.
Sure, go ahead. :-)
Assignee: mkanat → LpSolit
Status: NEW → ASSIGNED
Target Milestone: Bugzilla 2.22 → Bugzilla 2.20
Attached patch patch, v1Splinter Review
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+
Flags: approval?
Flags: approval? → approval+
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.

Attachment

General

Created:
Updated:
Size: