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
22ddb059
Commit
22ddb059
authored
Feb 19, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cut down on the number of syncshadowdb processes we fork off.
parent
b264e303
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
CGI.pl
CGI.pl
+2
-1
globals.pl
globals.pl
+10
-1
No files found.
CGI.pl
View file @
22ddb059
...
...
@@ -794,7 +794,8 @@ sub PutHeader {
sub
PutFooter
{
print
PerformSubsts
(
Param
(
"footerhtml"
));
print
PerformSubsts
(
Param
(
"footerhtml"
));
SyncAnyPendingShadowChanges
();
}
...
...
globals.pl
View file @
22ddb059
...
...
@@ -96,6 +96,15 @@ sub ReconnectToShadowDatabase {
}
}
my
$shadowchanges
=
0
;
sub
SyncAnyPendingShadowChanges
{
if
(
$shadowchanges
)
{
system
(
"./syncshadowdb &"
);
$shadowchanges
=
0
;
}
}
my
$dosqllog
=
(
-
e
"data/sqllog"
)
&&
(
-
w
"data/sqllog"
);
sub
SqlLog
{
...
...
@@ -137,7 +146,7 @@ sub SendSQL {
if
(
$insertid
)
{
SendSQL
(
"SET LAST_INSERT_ID = $insertid"
);
}
system
(
"./syncshadowdb &"
)
;
$shadowchanges
++
;
}
}
...
...
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