This commit is contained in:
Olivier Goffart 2018-07-25 14:08:55 +02:00 committed by Kevin Ottens
parent 6794306dde
commit 4031fb6d5b
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -681,7 +681,8 @@ void ProcessDirectoryJob::processFile(PathTuple path,
auto up = _discoveryData->_statedb->getUploadInfo(path._original);
if (up._valid && up._contentChecksum == remoteChecksumHeader) {
// Solve the conflict into an upload, or nothing
item->_instruction = up._modtime == localEntry.modtime ? CSYNC_INSTRUCTION_UPDATE_METADATA : CSYNC_INSTRUCTION_SYNC;
item->_instruction = up._modtime == localEntry.modtime && up._size == localEntry.size
? CSYNC_INSTRUCTION_UPDATE_METADATA : CSYNC_INSTRUCTION_SYNC;
item->_direction = SyncFileItem::Up;
// Update the etag and other server metadata in the journal already