Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
16ea7e0f
Commit
16ea7e0f
authored
Mar 21, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the syncing process low priority, so that we won't hang up
shadowdb operations.
parent
71699f06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
syncshadowdb
syncshadowdb
+8
-0
No files found.
syncshadowdb
View file @
16ea7e0f
...
...
@@ -32,6 +32,7 @@ require "defparams.pl";
sub
sillyness
{
my
$zz
;
$zz
=
$::db
;
$zz
=
$::dbwritesallowed
;
}
...
...
@@ -188,6 +189,13 @@ if ($syncall) {
Verbose
(
"Looking for commands to execute."
);
$::dbwritesallowed
=
1
;
# Make us low priority, to not block anyone who is trying to actually use
# the shadowdb. Note that this is carefully coded to ignore errors; we want
# to keep going even on older mysqld's that don't have the
# SQL_LOW_PRIORITY_UPDATES option.
$::db
->
query
(
"SET OPTION SQL_LOW_PRIORITY_UPDATES = 1"
);
while
(
1
)
{
SendSQL
(
"SELECT id, command FROM $shadowtable WHERE reflected = 0 "
.
"ORDER BY id LIMIT 1"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment