Skip to content

Commit

Permalink
Additional checks for prefetch statistics.
Browse files Browse the repository at this point in the history
  • Loading branch information
alja committed Oct 31, 2016
1 parent 97c66e7 commit 048e58c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/XrdFileCache/XrdFileCacheInfo.hh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ inline bool Info::TestBit(int i) const

inline bool Info::TestPrefetchBit(int i) const
{
if (m_buff_prefetch) return false;
if (!m_buff_prefetch) return false;

const int cn = i/8;
assert(cn < GetSizeInBytes());
Expand Down Expand Up @@ -346,6 +346,8 @@ inline void Info::SetBitWritten(int i)

inline void Info::SetBitPrefetch(int i)
{
if (!m_buff_prefetch) return;

const int cn = i/8;
assert(cn < GetSizeInBytes());

Expand Down

0 comments on commit 048e58c

Please sign in to comment.