diff options
Diffstat (limited to 'repo.go')
-rw-r--r-- | repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -582,7 +582,7 @@ func (r *Repo) matchStream(stream io.Reader, version int) []Chunk { h := hasher.Sum64() chunkId, exists := r.fingerprints[h] if exists { - if len(buff) > r.chunkSize && len(buff) < r.chunkSize*2 { + if len(buff) > r.chunkSize && len(buff) <= r.chunkSize*2 { size := len(buff) - r.chunkSize temp := NewTempChunk(buff[:size]) chunks = append(chunks, r.encodeTempChunks(prev, temp, version, &last, storeQueue)...) |