Repository navigation
PropagateUpload: Model of remote quota, avoid some uploads #5537 - #5892
Conversation
|
@ogoffart I'll add a test if you think doing this makes sense -- writing the test will probably take as long as writing the feature. |
ogoffart
left a comment
There was a problem hiding this comment.
👍 but a test would indeed be nice
There was a problem hiding this comment.
else {
propagator()->_folderQuota[QFileInfo(_item->_file).path()] -= _item->_size;
}
(you probably want to use an iterator to avoid multiple lookups, and only do it if there is a value there)
c2ea40e to
d08ed7d
Compare
|
the last commit conflicts with the HTTP/2 change. I'm afraid we can't put the logic to compute the max number of job there with HTTP/2 as we con't have a pointer to the account. |
|
@ogoffart Is the HTTP/2 change already merged? I think the suggestion to configure only parallelism-or-not makes sense and I'd adapt it accordingly. |
|
Yes, HTTP/2 is merged now. |
It's quite different in regard to blacklist handling and overall sync failure changes.
Very useful for changing it on a per-test basis.
When we see a 507 error, assume that quota is < uploaded size.
d08ed7d to
6754836
Compare
|
@ogoffart I updated the PR accordingly, please rereview! |
When we see a 507 error, assume that quota is < uploaded size.