Print

Print


* use bytes instead of blocks when planning purge operation;
* fallback to stat.mtime when access time can not be determined from cinfo file.

You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/325

-- Commit Summary --

  * Fix bug in cache scanning; simplify deletion loop.
  * Use bytes to calculate how many files to purge, not blocks; subtract actual size of the file, not the length of it returned by stat.
  * In cache purge, use stat.mtime of cinfo file if last access time can not be determined from contents of cinfo file.
  * Fix argument type from int to long long (was n_blocks, is size_in_bytes now).
  * One more int->long long. Update comments.

-- File Changes --

    M src/XrdFileCache/XrdFileCacheFactory.cc (124)
    M src/XrdFileCache/XrdFileCacheInfo.hh (10)

-- Patch Links --

https://github.com/xrootd/xrootd/pull/325.patch
https://github.com/xrootd/xrootd/pull/325.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/pull/325

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1