Skip to content

Commit

Permalink
Add log message in Read() when 0 bytes read.
Browse files Browse the repository at this point in the history
  • Loading branch information
alja committed Jun 9, 2016
1 parent 2c5e9d1 commit 4379e84
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/XrdFileCache/XrdFileCacheInfo.cc
Expand Up @@ -99,9 +99,13 @@ int Info::Read(XrdOssDF* fp)

int off = 0;
int version;
off += fp->Read(&version, off, sizeof(int));
off = fp->Read(&version, off, sizeof(int));
if (off <= 0) {
TRACE(Warning, "Info:::Read() failed");
return 0;
}
if (version != m_version) {
TRACE(Error, "Info:::Read(), incomatible file version");
TRACE(Error, "Info:::Read(), incompatible file version");
return 0;
}

Expand Down

0 comments on commit 4379e84

Please sign in to comment.