Fix bandwidthThrottling metrics for reads. The read stream was
incorrectly charging the entire buffer size against the throttler rather than just the number of bytes actually read. For example, if you did a read with a 32KB buffer which only received 300 bytes across the wire, the bandwidth Throttler would charge you for a full 32KB of bandwidth rather than the 300 bytes that were really used. This was grossly overstating the bandwidth consumption to the throttler.
Showing
1 changed file
with
4 additions
and
2 deletions
-
Please register or login to post a comment