2
0
Эх сурвалжийг харах

Use the full buffer size always (#2722)

Signed-off-by: Matt Bolt <mbolt35@gmail.com>
Matt Bolt 2 жил өмнө
parent
commit
3bdb62ef7a

+ 1 - 1
pkg/cloud/azure/streamreader.go

@@ -133,7 +133,7 @@ func (r *StreamReader) nextBlock() error {
 		r.container,
 		r.container,
 		r.blobName,
 		r.blobName,
 		currentBuffer, // recycle the old current buffer as the next buffer
 		currentBuffer, // recycle the old current buffer as the next buffer
-		r.position+int64(r.block.Cap()),
+		r.position+int64(defaultBlockSize),
 		int64(defaultBlockSize),
 		int64(defaultBlockSize),
 		r.size,
 		r.size,
 	)
 	)