Skip to content

Conversation

@icewind1991
Copy link
Member

Instead of caching the "validated" status per-share, instead track the latest share (by share id) that is validated.

This uses the fact that once a unique target is generated for the share, new files can't suddenly appear at the share target.
An exception to this is admin-created mount points (groupfolders, external storages, etc). So conflicts with other mount points is always done (but this is very cheap).

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Apr 8, 2025
@icewind1991 icewind1991 added this to the Nextcloud 32 milestone Apr 8, 2025
@icewind1991 icewind1991 requested a review from a team as a code owner April 8, 2025 13:40
@icewind1991 icewind1991 requested review from Altahrim, provokateurin and skjnldsv and removed request for a team April 8, 2025 13:40
@icewind1991 icewind1991 force-pushed the shared-target-verify-cache branch from 83d2ab5 to 17b72f4 Compare April 8, 2025 14:39
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 merged commit b82245d into master Apr 9, 2025
196 of 202 checks passed
@icewind1991 icewind1991 deleted the shared-target-verify-cache branch April 9, 2025 12:35
@icewind1991
Copy link
Member Author

/backport to stable31

@nickvergessen
Copy link
Member

❌ This might need reverting

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants