The nr_ranges_streamed denotes the number of ranges streamed so far, but by the time the sending lambda is called this counter is already incremented by the number of ranges to be streamed in this call. And the variable is not used for anything else but logging. Fix this by swapping logging with incrementing. Signed-off-by: Pavel Emelyanov <xemul@scylladb.com> Message-Id: <20200221101601.18779-1-xemul@scylladb.com>