Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion net/netx/src/TXNetFile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,8 @@ Bool_t TXNetFile::ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf)
for (Int_t i = 0; i < nbuf; i++)
pos[i] += fArchiveOffset;
}
Long64_t expected_nr = 0;
for (Int_t i = 0; i < nbuf; i++) {expected_nr += len[i];}

// A null buffer means that we want to use the async stuff
// hence we have to sync the cache size in XrdClient with the supposed
Expand All @@ -799,7 +801,7 @@ Bool_t TXNetFile::ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf)
if (gDebug > 1)
Info("ReadBuffers", "response from ReadV(%d) nr: %lld", nbuf, nr);

if (nr > 0) {
if (nr == expected_nr) {

if (gDebug > 1)
Info("ReadBuffers", "%lld bytes of data read from a list of %d buffers",
Expand Down