From b2b03103bba9927d5f1b123e0ad7ae1e04149dc8 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 25 Jan 2009 12:42:51 +0000 Subject: Bug 471880: More scripts should use the shadow DB instead of the master DB - Patch by Frédéric Buclin r=mkanat a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- show_activity.cgi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'show_activity.cgi') 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); -- cgit v1.2.3-24-g4f1b