Skip to content

add wrapper for external storage to ensure we don't get an mtime that is lower than we know it is - #40499

Merged
icewind1991 merged 2 commits into
masterfrom
known-mtime-wrapper
Sep 21, 2023
Merged

add wrapper for external storage to ensure we don't get an mtime that is lower than we know it is#40499
icewind1991 merged 2 commits into
masterfrom
known-mtime-wrapper

Conversation

@icewind1991

Copy link
Copy Markdown
Member

Some storage servers will return the old mtime right after writes, causing Nextcloud to detect external changes when the correct mtime is return the next time around.

This adds some logic to not return mtimes lower than when we last touch the files ourselves to prevent these issues.

@icewind1991icewind1991 added the 3. to review Waiting for reviews label Sep 19, 2023
@icewind1991icewind1991 added this to the Nextcloud 28 milestone Sep 19, 2023
@icewind1991
icewind1991 requested review from a team, ArtificialOwl, nfebe and sorbaugh and removed request for a teamSeptember 19, 2023 10:46
…w it is
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991

Copy link
Copy Markdown
MemberAuthor

/backport to stable27

@icewind1991

Copy link
Copy Markdown
MemberAuthor

/backport to stable26

@icewind1991

Copy link
Copy Markdown
MemberAuthor

/backport to stable25

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@icewind1991@artonge@nfebe@come-nc