aboutsummaryrefslogtreecommitdiffstats
path: root/show_activity.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-01-25 12:42:51 +0000
committerlpsolit%gmail.com <>2009-01-25 12:42:51 +0000
commitb2b03103bba9927d5f1b123e0ad7ae1e04149dc8 (patch)
treee4845cde1af1ada8ca0d43e8c42be6d589e9a936 /show_activity.cgi
parent812ad9b3515aff6d9d870c2a11845b7416e40288 (diff)
downloadbugs-b2b03103bba9927d5f1b123e0ad7ae1e04149dc8.tar
bugs-b2b03103bba9927d5f1b123e0ad7ae1e04149dc8.tar.gz
bugs-b2b03103bba9927d5f1b123e0ad7ae1e04149dc8.tar.bz2
bugs-b2b03103bba9927d5f1b123e0ad7ae1e04149dc8.tar.xz
bugs-b2b03103bba9927d5f1b123e0ad7ae1e04149dc8.zip
Bug 471880: More scripts should use the shadow DB instead of the master DB - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
Diffstat (limited to 'show_activity.cgi')
-rwxr-xr-xshow_activity.cgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/show_activity.cgi b/show_activity.cgi
index f7db3dd0b..27096018f 100755
--- a/show_activity.cgi
+++ b/show_activity.cgi
@@ -50,6 +50,10 @@ my $bug = Bugzilla::Bug->check($id);
# End Data/Security Validation
###############################################################################
+# Run queries against the shadow DB. In the worst case, new changes are not
+# visible immediately due to replication lag.
+Bugzilla->switch_to_shadow_db;
+
($vars->{'operations'}, $vars->{'incomplete_data'}) =
Bugzilla::Bug::GetBugActivity($bug->id);