Skip to content

Commit

Permalink
Blacklist: Clear on successful chunk upload #3934
Browse files Browse the repository at this point in the history
  • Loading branch information
ckamm committed Nov 24, 2015
1 parent f9dc569 commit adea301
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libsync/propagateupload.cpp
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit adea301

Please sign in to comment.