From: terry%mozilla.org <> Date: Wed, 16 Feb 2000 05:29:14 +0000 (+0000) Subject: Lock the tables as low-priority when writing. Maybe makes people making changes... X-Git-Tag: bugzilla-2.12~386 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c0ea11d42d7942f36e1704afefc55655811db5d;p=thirdparty%2Fbugzilla.git Lock the tables as low-priority when writing. Maybe makes people making changes wait longer, but people doing read-only stuff should now never block for very long. --- diff --git a/process_bug.cgi b/process_bug.cgi index b9be355b2b..9eb32e1299 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -482,7 +482,12 @@ sub LogDependencyActivity { # foreach my $id (@idlist) { my %dependencychanged; - SendSQL("lock tables bugs write, bugs_activity write, cc write, profiles write, dependencies write, votes write, keywords write, longdescs write, fielddefs write, keyworddefs read"); + my $write = "LOW_PRIORITY WRITE"; # Might want to make a param to control + # whether we do LOW_PRIORITY ... + SendSQL("LOCK TABLES bugs $write, bugs_activity $write, cc $write, " . + "profiles $write, dependencies $write, votes $write, " . + "keywords $write, longdescs $write, fielddefs $write, " . + "keyworddefs READ, groups READ"); my @oldvalues = SnapShotBug($id); if (defined $::FORM{'delta_ts'} && $::FORM{'delta_ts'} ne $delta_ts) {