This commit is contained in:
Christoph Armster 2022-02-22 09:09:00 +01:00
parent e08384e901
commit 25e8a0a4c8
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ func (o *GcsFile) Seek(newOffset int64, whence int) (int64, error) {
if (whence == 0 && newOffset == o.fhOffset) || (whence == 1 && newOffset == 0) { if (whence == 0 && newOffset == o.fhOffset) || (whence == 1 && newOffset == 0) {
return o.fhOffset, nil return o.fhOffset, nil
} }
log.Printf("WARNING: Seek beavhior triggered, highly inefficent. Offset before seek is at %d\n", o.fhOffset) log.Printf("WARNING: Seek behavior triggered, highly inefficent. Offset before seek is at %d\n", o.fhOffset)
//Fore the reader/writers to be reopened (at correct offset) //Fore the reader/writers to be reopened (at correct offset)
err := o.Sync() err := o.Sync()