fix for the failing test case (parent commit)

This commit is contained in:
Sridhar Ratnakumar 2014-04-28 14:51:59 -07:00
parent afbbb638b5
commit 555e6044ca
1 changed files with 2 additions and 0 deletions

View File

@ -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: