Skip to content

Commit

Permalink
[XrdCl] pgread: correctly calculate the number of bytes read.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal authored and gganis committed Nov 23, 2021
1 parent 3be8532 commit 873ed29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdCl/XrdClXRootDMsgHandler.hh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#include <array>
#include <list>
#include <memory>

#include <atomic>

namespace XrdCl
Expand Down Expand Up @@ -493,9 +492,10 @@ namespace XrdCl
{
uint32_t btsRead = 0;
Status st = ReadPageAsync( socket, btsRead );
if( !st.IsOK() || st.code == suRetry ) return st;
if( !st.IsOK() ) return st;
bytesRead += btsRead;
toBeRead -= btsRead;
if( st.code == suRetry ) return st;
}

return Status();
Expand Down

0 comments on commit 873ed29

Please sign in to comment.