Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Main
Synchronet
Commits
843d8b11
Commit
843d8b11
authored
7 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Better log messages when locks fail and aren't old enough to take over.
parent
f2467ce5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/binkit.js
+2
-2
2 additions, 2 deletions
exec/binkit.js
with
2 additions
and
2 deletions
exec/binkit.js
+
2
−
2
View file @
843d8b11
...
@@ -63,7 +63,7 @@ function lock_flow(file)
...
@@ -63,7 +63,7 @@ function lock_flow(file)
// TODO: This is hacked for a signed 32-bit time_t... watch out in 2038!
// TODO: This is hacked for a signed 32-bit time_t... watch out in 2038!
orig_date
=
f
.
date
;
orig_date
=
f
.
date
;
if
(
orig_date
>
(
now
-
60
*
60
*
6
))
{
if
(
orig_date
>
(
now
-
60
*
60
*
6
))
{
log
(
LOG_
WARNING
,
format
(
"
%ld > %ld
"
,
orig_date
,
now
-
60
*
60
*
6
));
log
(
LOG_
INFO
,
format
(
"
Lock is too recent to override now (
%ld
)
>
six hours ago (
%ld
)
"
,
orig_date
,
now
-
60
*
60
*
6
));
return
false
;
return
false
;
}
}
remain
=
0x80000000
-
now
;
remain
=
0x80000000
-
now
;
...
@@ -71,7 +71,7 @@ function lock_flow(file)
...
@@ -71,7 +71,7 @@ function lock_flow(file)
f
.
date
=
future
;
f
.
date
=
future
;
mswait
(
1000
);
mswait
(
1000
);
if
(
f
.
date
!=
future
)
{
if
(
f
.
date
!=
future
)
{
log
(
LOG_WARNING
,
format
(
"
%ld != future(%ld)
"
,
f
.
date
,
future
));
log
(
LOG_WARNING
,
format
(
"
Failed to set date in the future fdate (
%ld
)
!= future
(%ld)
"
,
f
.
date
,
future
));
return
false
;
return
false
;
}
}
if
(
!
f
.
open
(
"
wb
"
))
{
if
(
!
f
.
open
(
"
wb
"
))
{
...
...
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