Browse Source

Increase compact revision during each compaction

pull/142/head
chrislusf 10 years ago
parent
commit
66317b8438
  1. 1
      go/storage/volume_vacuum.go

1
go/storage/volume_vacuum.go

@ -65,6 +65,7 @@ func (v *Volume) copyDataAndGenerateIndexFile(dstName, idxName string) (err erro
err = ScanVolumeFile(v.dir, v.Collection, v.Id, v.needleMapKind,
func(superBlock SuperBlock) error {
superBlock.CompactRevision++
_, err = dst.Write(superBlock.Bytes())
return err
}, true, func(n *Needle, offset int64) error {

Loading…
Cancel
Save