Skip to content

Commit

Permalink
member alignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
alja committed Oct 27, 2016
1 parent 43ef8e4 commit b02ff6c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
8 changes: 4 additions & 4 deletions src/XrdFileCache/XrdFileCache.hh
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ struct Configuration

long long m_diskUsageLWM; //!< cache purge low water mark
long long m_diskUsageHWM; //!< cache purge high water mark
int m_purgeInterval; //!< sleep interval between cache purges
int m_purgeInterval; //!< sleep interval between cache purges

long long m_bufferSize; //!< prefetch buffer size, default 1MB
long long m_RamAbsAvailable; //!< available from configuration
int m_NRamBuffers; //!< number of total in-memory cache blocks, cached
size_t m_prefetch_max_blocks; //!< maximum number of blocks to prefetch per file
int m_NRamBuffers; //!< number of total in-memory cache blocks, cached
size_t m_prefetch_max_blocks; //!< maximum number of blocks to prefetch per file

long long m_hdfsbsize; //!< used with m_hdfsmode, default 128MB
};
Expand Down Expand Up @@ -254,4 +254,4 @@ private:

}

#endif
#endif
19 changes: 10 additions & 9 deletions src/XrdFileCache/XrdFileCacheFile.hh
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ class Block
{
public:
std::vector<char> m_buff;
long long m_offset;
long long m_offset;
File *m_file;
bool m_prefetch;
int m_refcnt;
int m_errno; // stores negative errno
bool m_downloaded;
bool m_prefetch;
int m_refcnt;
int m_errno; // stores negative errno
bool m_downloaded;

Block(File *f, long long off, int size, bool m_prefetch) :
m_offset(off), m_file(f), m_prefetch(m_prefetch), m_refcnt(0),
Expand Down Expand Up @@ -130,10 +130,11 @@ private:

PrefetchState_e m_prefetchState;

int m_prefetchReadCnt;
int m_prefetchHitCnt;
int m_prefetchReadCnt;
int m_prefetchHitCnt;
float m_prefetchScore; //cached
bool m_detachTimeIsLogged;

bool m_detachTimeIsLogged;

static const char *m_traceID;

Expand Down Expand Up @@ -269,4 +270,4 @@ public:

}

#endif
#endif

0 comments on commit b02ff6c

Please sign in to comment.