Merge pull request #1713 from aibaars/gcs-fix

GCS: FileWriter.Size: return offset + buffer size for Writers that are not closed
This commit is contained in:
Richard Scothern 2016-05-10 11:32:14 +01:00
commit 03efb43768
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ func (w *writer) Write(p []byte) (int, error) {
// Size returns the number of bytes written to this FileWriter.
func (w *writer) Size() int64 {
if !w.closed {
return w.size + int64(w.buffSize)
return w.offset + int64(w.buffSize)
}
return w.size
}