Title: [174848] trunk/Websites/bugs.webkit.org/Bugzilla/User.pm
- Revision
- 174848
- Author
- [email protected]
- Date
- 2014-10-17 16:15:51 -0700 (Fri, 17 Oct 2014)
Log Message
Disable database handle statement caching to fix Internal Server Errors
* Bugzilla/User.pm:
(Bugzilla::User::visible_bugs): Disable database handle
statement caching. Apparently these statements would go bad
without the DBD module noticing, causing errors on numerous
pages.
Modified Paths
Diff
Modified: trunk/Websites/bugs.webkit.org/Bugzilla/User.pm (174847 => 174848)
--- trunk/Websites/bugs.webkit.org/Bugzilla/User.pm 2014-10-17 22:58:33 UTC (rev 174847)
+++ trunk/Websites/bugs.webkit.org/Bugzilla/User.pm 2014-10-17 23:15:51 UTC (rev 174848)
@@ -859,9 +859,10 @@
my $user_id = $self->id;
my $sth;
# Speed up the can_see_bug case.
- if (scalar(@check_ids) == 1) {
- $sth = $self->{_sth_one_visible_bug};
- }
+ # WEBKIT_CHANGES: Disable statement caching
+ #if (scalar(@check_ids) == 1) {
+ # $sth = $self->{_sth_one_visible_bug};
+ #}
$sth ||= $dbh->prepare(
# This checks for groups that the bug is in that the user
# *isn't* in. Then, in the Perl code below, we check if
@@ -885,9 +886,10 @@
. $self->groups_as_string . ')
WHERE bugs.bug_id IN (' . join(',', ('?') x @check_ids) . ')
AND creation_ts IS NOT NULL ');
- if (scalar(@check_ids) == 1) {
- $self->{_sth_one_visible_bug} = $sth;
- }
+ # WEBKIT_CHANGES: Disable statement caching
+ #if (scalar(@check_ids) == 1) {
+ # $self->{_sth_one_visible_bug} = $sth;
+ #}
$sth->execute(@check_ids);
my $use_qa_contact = Bugzilla->params->{'useqacontact'};
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes