mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Blacklist: Clear on successful chunk upload #3934
This commit is contained in:
parent
f9dc569b0a
commit
adea301e5b
1 changed files with 6 additions and 1 deletions
|
@ -699,6 +699,12 @@ void PropagateUploadFileQNAM::slotPutFinished()
|
|||
return;
|
||||
}
|
||||
|
||||
// Deletes an existing blacklist entry on successful chunk upload
|
||||
if (_item->_hasBlacklistEntry) {
|
||||
_propagator->_journal->wipeErrorBlacklistEntry(_item->_file);
|
||||
_item->_hasBlacklistEntry = false;
|
||||
}
|
||||
|
||||
SyncJournalDb::UploadInfo pi;
|
||||
pi._valid = true;
|
||||
auto currentChunk = job->_chunk;
|
||||
|
@ -709,7 +715,6 @@ void PropagateUploadFileQNAM::slotPutFinished()
|
|||
pi._chunk = (currentChunk + _startChunk + 1) % _chunkCount ; // next chunk to start with
|
||||
pi._transferid = _transferId;
|
||||
pi._modtime = Utility::qDateTimeFromTime_t(_item->_modtime);
|
||||
_propagator->_journal->wipeErrorBlacklistEntry(_item->_file);
|
||||
_propagator->_journal->setUploadInfo(_item->_file, pi);
|
||||
_propagator->_journal->commit("Upload info");
|
||||
startNextChunk();
|
||||
|
|
Loading…
Reference in a new issue