-
Notifications
You must be signed in to change notification settings - Fork 668
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
Cache the value of last unfinished job in the PropagateDerectory scheduleNextJob #5274
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but it doesn't hurt to also leave this for review by @ogoffart when he's back next week.
f9bc21e
to
a2d2690
Compare
On a more general note: We're using |
@@ -194,11 +194,12 @@ class OWNCLOUDSYNC_EXPORT PropagateDirectory : public PropagatorJob { | |||
|
|||
int _jobsFinished; // number of jobs that have completed | |||
int _runningNow; // number of subJobs running right now | |||
SyncFileItem::Status _hasError; // NoStatus, or NormalError / SoftError if there was an error | |||
SyncFileItem::Status _hasError; // NoStatus, or NormalError / SoftError if there was an errorv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo (errorv)
Looks good (appart from the typo in the comment) |
a2d2690
to
34c59ba
Compare
Ok, done. Ready to merge if checks will pass. |
This PR solves the problem discussed in this PR #5269, implementing the solution of @ckamm which appears to work :
I did not run in any race condition and manualy tested most of the cases. Hope this will work out
@guruz @ogoffart