Merge "Fix chunk corruption compaction bug."

This commit is contained in:
Julius Volz 2013-10-24 13:57:31 +02:00 committed by Gerrit Code Review
commit 5e18255920
1 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,9 @@ func (p *CompactionProcessor) Apply(sampleIterator leveldb.Iterator, samplesPers
return
}
sampleKey.Load(sampleKeyDto)
if !sampleKey.Fingerprint.Equal(fingerprint) {
break
}
unactedSamples, err = extractSampleValues(sampleIterator)
if err != nil {