Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pnfsmanager: fix atime update regression
Motivation: Setting atime-gap to -1 (default value) should disable file's last access time updates. Nevertheless, this was not the case and atime update was always enabled. The main reason of disabling atime update is to reduce the load on DB. Modification: Fix atime condition check from != -1 to >= 0 as TimeUnit.SECONDS.toMillis(-1) return -1000. Result: File's last access time can be disabled as described in the documentation. Fixes: #2390 Acked-by: Gerd Behrmann Target: master, 2.15, 2.14, 2.13, 2.12 Require-book: no Require-notes: yes (cherry picked from commit 487095d) Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
- Loading branch information
Showing
2 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters