Skip to content

Commit

Permalink
Change log messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
alja authored and osschar committed Feb 20, 2015
1 parent 1ef7cf2 commit 2227667
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/XrdFileCache/XrdFileCachePrefetch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -553,15 +553,14 @@ Prefetch::WriteBlockToDisk(int ramIdx, size_t size)
//______________________________________________________________________________
void Prefetch::Sync()
{
clLog()->Info(XrdCl::AppMsg, "Prefetch sync %s", lPath());
clLog()->Dump(XrdCl::AppMsg, "Prefetch sync %s", lPath());
m_syncStatusMutex.Lock();
m_in_sync = true;
m_syncStatusMutex.UnLock();

m_output->Fsync();
m_infoFile->Fsync();

clLog()->Info(XrdCl::AppMsg, "Prefetch sync done for data and info file %s", lPath());
m_syncStatusMutex.Lock();
m_in_sync = false;
m_cfi.WriteHeader(m_infoFile);
Expand All @@ -570,9 +569,7 @@ void Prefetch::Sync()
m_cfi.SetBitWriteCalled(*i);
m_write_called_while_in_sync.clear();



clLog()->Info(XrdCl::AppMsg, "Prefetch sync left %d", m_non_flushed_cnt);
clLog()->Dump(XrdCl::AppMsg, "Prefetch sync left %d", m_non_flushed_cnt);

m_syncStatusMutex.UnLock();
}
Expand Down

0 comments on commit 2227667

Please sign in to comment.