diff options
author | terry%mozilla.org <> | 2000-02-16 06:29:14 +0100 |
---|---|---|
committer | terry%mozilla.org <> | 2000-02-16 06:29:14 +0100 |
commit | 3c0ea11d42d7942f36e1704afefc55655811db5d (patch) | |
tree | e72d94d16995952ee907d7ff968f813151059083 /process_bug.cgi | |
parent | b018c7a450aef5c381b320bc6aa2a60d6fa1fdd1 (diff) | |
download | bugzilla-3c0ea11d42d7942f36e1704afefc55655811db5d.tar.gz bugzilla-3c0ea11d42d7942f36e1704afefc55655811db5d.tar.xz |
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.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index b9be355b2..9eb32e129 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) { |