fix for the failing test case (parent commit)
This commit is contained in:
parent
afbbb638b5
commit
555e6044ca
2
tail.go
2
tail.go
|
@ -236,6 +236,8 @@ func (tail *Tail) tailFileSync() {
|
||||||
tail.Killf("Seek error on %s: %s", tail.Filename, err)
|
tail.Killf("Seek error on %s: %s", tail.Filename, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// Reset the read buffer whenever the file is re-seek'ed
|
||||||
|
tail.reader.Reset(tail.file)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case io.EOF:
|
case io.EOF:
|
||||||
|
|
Loading…
Reference in New Issue