Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
logstash-forwarder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
LaaS
logstash-forwarder
Commits
95230d45
Commit
95230d45
authored
Oct 18, 2013
by
Jordan Sissel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fix bug introduced during windows-support integration which caused
file rotation to always be incorrectly detected on linux.
parent
6f07d148
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
filecompare.go
filecompare.go
+2
-2
No files found.
filecompare.go
View file @
95230d45
...
...
@@ -9,13 +9,13 @@ import (
func
is_file_same
(
path
string
,
info
os
.
FileInfo
,
state
*
FileState
)
bool
{
fstat
:=
info
.
Sys
()
.
(
*
syscall
.
Stat_t
)
return
(
fstat
.
Ino
!
=
state
.
Inode
&&
fstat
.
Dev
==
state
.
Device
)
return
(
fstat
.
Ino
=
=
state
.
Inode
&&
fstat
.
Dev
==
state
.
Device
)
}
func
is_fileinfo_same
(
a
os
.
FileInfo
,
b
os
.
FileInfo
)
bool
{
af
:=
a
.
Sys
()
.
(
*
syscall
.
Stat_t
)
bf
:=
b
.
Sys
()
.
(
*
syscall
.
Stat_t
)
return
(
af
.
Dev
!=
bf
.
Dev
||
af
.
Ino
!
=
bf
.
Ino
)
return
(
af
.
Dev
==
bf
.
Dev
&&
af
.
Ino
=
=
bf
.
Ino
)
}
func
is_file_renamed
(
file
string
,
info
os
.
FileInfo
,
fileinfo
map
[
string
]
os
.
FileInfo
)
bool
{
...
...
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