Skip to content

Commit

Permalink
Rename File::initateClose() to ioActive()
Browse files Browse the repository at this point in the history
  • Loading branch information
alja authored and abh3 committed Jun 30, 2016
1 parent 96b3cf7 commit e5e4699
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/XrdFileCache/XrdFileCacheFile.cc
Expand Up @@ -134,7 +134,7 @@ File::~File()
TRACEF(Debug, "File::~File() ended, prefetch score = " << m_prefetchScore);
}

bool File::InitiateClose()
bool File::ioActive()
{
// Retruns true if delay is needed

Expand Down
2 changes: 1 addition & 1 deletion src/XrdFileCache/XrdFileCacheFile.hh
Expand Up @@ -167,7 +167,7 @@ namespace XrdFileCache
//! \brief Initiate close. Return true if still IO active.
//! Used in XrdPosixXrootd::Close()
//----------------------------------------------------------------------
bool InitiateClose();
bool ioActive();

//----------------------------------------------------------------------
//! Sync file cache inf o and output data with disk
Expand Down
2 changes: 1 addition & 1 deletion src/XrdFileCache/XrdFileCacheIOEntireFile.cc
Expand Up @@ -139,7 +139,7 @@ bool IOEntireFile::ioActive()
if ( ! m_file)
return false;
else
return m_file->InitiateClose();
return m_file->ioActive();
}

XrdOucCacheIO *IOEntireFile::Detach()
Expand Down
2 changes: 1 addition & 1 deletion src/XrdFileCache/XrdFileCacheIOFileBlock.cc
Expand Up @@ -135,7 +135,7 @@ bool IOFileBlock::ioActive()
XrdSysMutexHelper lock(&m_mutex);

for (std::map<int, File*>::iterator it = m_blocks.begin(); it != m_blocks.end(); ++it) {
if (it->second->InitiateClose())
if (it->second->ioActive())
return true;
}

Expand Down

0 comments on commit e5e4699

Please sign in to comment.