Skip to content

Commit

Permalink
pool: Fix access time update
Browse files Browse the repository at this point in the history
The bug causes access time update to happen on pool to pool and not on regular
downloads - the reverse is supposed to happen.

This affects sweeper garbage collection order, space cost calculation, and
access time update in the name space.

Target: trunk
Request: 2.8
Request: 2.7
Request: 2.6
Require-notes: yes
Require-book: no
Ticket: http://rt.dcache.org/Ticket/Display.html?id=8234
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6564/
(cherry picked from commit 05cb3fc)
  • Loading branch information
gbehrmann committed Feb 12, 2014
1 parent 92fb0d3 commit e4cda2e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -747,8 +747,8 @@ private Mover<?> createMover(CellPath source, PoolIoFileMessage message) throws
} else {
Set<Repository.OpenFlags> openFlags =
message.isPool2Pool()
? EnumSet.noneOf(Repository.OpenFlags.class)
: EnumSet.of(Repository.OpenFlags.NOATIME);
? EnumSet.of(Repository.OpenFlags.NOATIME)
: EnumSet.noneOf(Repository.OpenFlags.class);
handle = _repository.openEntry(pnfsId, openFlags);
}
} catch (FileNotInCacheException e) {
Expand Down

0 comments on commit e4cda2e

Please sign in to comment.