mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-06 00:03:38 +00:00
For chunks already existing on the storage the skipped flag should be true
This commit is contained in:
@@ -122,7 +122,7 @@ func (uploader *ChunkUploader) Upload(threadIndex int, task ChunkUploadTask) boo
|
|||||||
// Chunk deduplication by name in effect here.
|
// Chunk deduplication by name in effect here.
|
||||||
LOG_DEBUG("CHUNK_DUPLICATE", "Chunk %s already exists", chunkID)
|
LOG_DEBUG("CHUNK_DUPLICATE", "Chunk %s already exists", chunkID)
|
||||||
|
|
||||||
uploader.completionFunc(chunk, task.chunkIndex, false, chunkSize, 0)
|
uploader.completionFunc(chunk, task.chunkIndex, true, chunkSize, 0)
|
||||||
atomic.AddInt32(&uploader.numberOfUploadingTasks, -1)
|
atomic.AddInt32(&uploader.numberOfUploadingTasks, -1)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user