Skip to content

Commit

Permalink
In hdfs healing mode forward stat query to origin.
Browse files Browse the repository at this point in the history
  • Loading branch information
alja authored and abh3 committed Jun 30, 2016
1 parent 833a04d commit 77a49d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/XrdFileCache/XrdFileCacheIOFileBlock.cc
Expand Up @@ -58,6 +58,10 @@ XrdOucCacheIO* IOFileBlock::Detach()
return io;
}

int IOFileBlock::Fstat(struct stat &sbuff)
{
return m_io->Fstat(sbuff);
}
//______________________________________________________________________________
void IOFileBlock::GetBlockSizeFromPath()
{
Expand Down
1 change: 1 addition & 0 deletions src/XrdFileCache/XrdFileCacheIOFileBlock.hh
Expand Up @@ -64,6 +64,7 @@ namespace XrdFileCache
//! Called to check if destruction needs to be done in a separate task.
virtual bool ioActive();

virtual int Fstat(struct stat &sbuff);
private:
long long m_blocksize; //!< size of file-block
std::map<int, File*> m_blocks; //!< map of created blocks
Expand Down

0 comments on commit 77a49d4

Please sign in to comment.