Skip to content

Commit

Permalink
Merge pull request #19860 from Dr15Jones/additionalRootErrors2
Browse files Browse the repository at this point in the history
Add additional Error log messages
  • Loading branch information
cmsbuild committed Jul 21, 2017
2 parents 4bc26f1 + 54dba8e commit a8675ca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion IOPool/TFileAdaptor/src/TStorageFactoryFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ TStorageFactoryFile::ReadBuffersSync(char *buf, Long64_t *pos, Int_t *len, Int_t
std::vector<IOPosBuffer> &iov = repacker.iov();
IOSize result = storage_->readv(&iov[0], iov.size());
if (result != io_buffer_used) {
Error("ReadBuffersSync","Storage::readv returned different size result=%ld expected=%ld",result,io_buffer_used);
return kTRUE;
}
xstats.tick(io_buffer_used);
Expand Down Expand Up @@ -477,7 +478,13 @@ TStorageFactoryFile::ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbu
astats.tick(total);

// If it didn't suceeed, pass down to the base class.
return success ? kFALSE : TFile::ReadBuffers(buf, pos, len, nbuf);
if(not success) {
if(TFile::ReadBuffers(buf, pos, len, nbuf)) {
Error("ReadBuffers", "call to TFile::ReadBuffers failed after prefetch already failed.");
return kTRUE;
}
}
return kFALSE;
}

Bool_t
Expand Down

0 comments on commit a8675ca

Please sign in to comment.