Sync engine: Restart sync when we get a precondition failed error

This commit is contained in:
Olivier Goffart 2014-10-11 15:39:35 +02:00
parent 9b178c5bb2
commit 282abdd804

View file

@ -310,6 +310,7 @@ void PropagateUploadFileQNAM::slotPutFinished()
// Precondition Failed: Maybe the bad etag is in the database, we need to clear the
// parent folder etag so we won't read from DB next sync.
_propagator->_journal->avoidReadFromDbOnNextSync(_item._file);
_propagator->_anotherSyncNeeded = true;
}
done(classifyError(err, _item._httpErrorCode), errorString);