Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not check every 5 seconds files with infinite timeout (= 0) #6059

Merged

Conversation

mgallien
Copy link
Collaborator

@mgallien mgallien commented Sep 14, 2023

we want to schedule a new sync attempt if a file is likely to have been unlocked due to timeout expiring on server

but if the timeout is null (equal to 0), there will be no timeout on server and no automated unlocking, so do not schedule a sync every 5 seconds to check for it

we want to schedule a new sync attempt if a file is likely to have been
unlocked due to timeout expiring on server

but if the timeout is null (equal to 0), there will be no timeout on
server and no automated unlocking, so do not schedule a sync every 5
seconds to check for it

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
@mgallien mgallien force-pushed the bugfix/nullTimeoutIsInfiniteDoNotCheckItEveryFiveSeconds branch from 1922371 to a17b360 Compare September 14, 2023 16:33
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #6059 (a17b360) into master (e010391) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6059      +/-   ##
==========================================
- Coverage   60.28%   60.24%   -0.05%     
==========================================
  Files         145      145              
  Lines       18866    18868       +2     
==========================================
- Hits        11374    11367       -7     
- Misses       7492     7501       +9     
Files Changed Coverage Δ
src/libsync/discovery.cpp 86.42% <100.00%> (-0.26%) ⬇️

... and 1 file with indirect coverage changes

@sonarcloud
Copy link

sonarcloud bot commented Sep 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@mgallien
Copy link
Collaborator Author

/backport to stable-3.10

@mgallien
Copy link
Collaborator Author

/backport to stable-3.9

@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-6059-a17b3608d93f503114880d4880584dcd0feee14f-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien merged commit 23236ce into master Sep 14, 2023
12 checks passed
@mgallien mgallien deleted the bugfix/nullTimeoutIsInfiniteDoNotCheckItEveryFiveSeconds branch September 14, 2023 20:54
@mgallien mgallien added this to the 3.11.0 milestone Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants