Skip to content

BugFix - Unnecessary Sync - #13897

Merged
tobiasKaminsky merged 1 commit into
masterfrom
bugfix/unnecessary-sync
Oct 30, 2024
Merged

tobiasKaminsky merged 1 commit into
masterfrom
bugfix/unnecessary-sync

Conversation

@alperozturk96

@alperozturk96 alperozturk96 commented Oct 29, 2024 •

Copy link
Copy Markdown
Collaborator
  • Tests written, or not not needed

This regression occurred during the conversion from service to worker. Previously, while using the service, we triggered FileDownloader in a loop for mFilesForDirectDownload. Now, since FileDownloadWorker supports both folder and file sync, we can directly use the mFilesForDirectDownload list with the worker.

How to Test?

  1. Sync Folder
  2. Only necessary files will be synchronized

@github-actions

Copy link
Copy Markdown

Codacy

Lint

TypemasterPR
Warnings5959
Errors33

SpotBugs

CategoryBaseNew
Bad practice6565
Correctness6362
Dodgy code300300
Experimental11
Internationalization77
Malicious code vulnerability11
Multithreaded correctness66
Performance5353
Security1818
Total514513

@ZetaTom ZetaTom mentioned this pull request Oct 29, 2024
1 task done

@ZetaTom ZetaTom left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my tests, this fixed the endless re-downloading of synchronised folders.

@alperozturk96

Copy link
Copy Markdown
Collaborator Author

/backport to stable-3.30

@tobiasKaminsky
tobiasKaminsky merged commit 2e03e22 into master Oct 30, 2024
@tobiasKaminsky
tobiasKaminsky deleted the bugfix/unnecessary-sync branch October 30, 2024 08:53
@alperozturk96 alperozturk96 added this to the Nextcloud App 3.30.4 milestone Oct 31, 2024
@IdeallyGrey IdeallyGrey mentioned this pull request Nov 1, 2024
4 tasks done
@joshtrichards joshtrichards mentioned this pull request Jan 29, 2025
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants