Skip to content

(fix)db: update atime on file access#2174

Merged
jethrokuan merged 1 commit intomainfrom
fix/atime
May 11, 2022
Merged

(fix)db: update atime on file access#2174
jethrokuan merged 1 commit intomainfrom
fix/atime

Conversation

@jethrokuan
Copy link
Member

Motivation for this change

Previously we only updated the database on file save, but we need to
update the file's atime on file access, so we hook into find-file-hook
to do so. We only update the file atime if the file exists in the file table.

Fixes #2075

Previously we only updated the database on file save, but we need to
update the file's atime on file access, so we hook into `find-file-hook`
to do so. We only update the file atime if the file exists in the file table.
@jethrokuan jethrokuan merged commit b2d9543 into main May 11, 2022
@jethrokuan jethrokuan deleted the fix/atime branch May 11, 2022 22:39
jethrokuan added a commit that referenced this pull request May 12, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

file-atime is not really the access time of the file

1 participant