Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bus Map
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anton Sarukhanov
Bus Map
Commits
b6a4a574
Commit
b6a4a574
authored
11 years ago
by
=
Browse files
Options
Downloads
Patches
Plain Diff
lock lastChecked table
parent
ba0d6505
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cron/getPredictions.php
+1
-1
1 addition, 1 deletion
cron/getPredictions.php
cron/getRouteConfig.php
+1
-1
1 addition, 1 deletion
cron/getRouteConfig.php
with
2 additions
and
2 deletions
cron/getPredictions.php
+
1
−
1
View file @
b6a4a574
...
...
@@ -48,7 +48,7 @@ foreach ($routes as $route => $stops) {
}
}
dbq
(
$db
,
"LOCK TABLES `predictions` WRITE, `messages` WRITE"
);
dbq
(
$db
,
"LOCK TABLES `predictions` WRITE, `messages`
WRITE, `lastChecked`
WRITE"
);
dbq
(
$db
,
"DELETE FROM `messages` WHERE `agency` = '
{
$agency
}
'"
);
dbq
(
$db
,
"DELETE FROM `predictions` WHERE `agency` = '
{
$agency
}
'"
);
...
...
This diff is collapsed.
Click to expand it.
cron/getRouteConfig.php
+
1
−
1
View file @
b6a4a574
...
...
@@ -32,7 +32,7 @@ if ($lastFetched + $getRouteConfig_waitSeconds < time()) {
if
(
@
$source
=
file_get_contents
(
$url
))
{
if
(
$thisXML
=
simplexml_load_string
(
$source
))
{
dbq
(
$db
,
"LOCK TABLES `routes` WRITE, `stops` WRITE, `route_stops` WRITE"
);
dbq
(
$db
,
"LOCK TABLES `routes` WRITE, `stops` WRITE, `route_stops`
WRITE, `lastChecked`
WRITE"
);
dbq
(
$db
,
"DELETE FROM `routes` WHERE `agency` = '
{
$agency
}
'"
);
dbq
(
$db
,
"DELETE FROM `stops` WHERE `agency` = '
{
$agency
}
'"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment