Browse Source

skip memory mapped file when compacting

pull/1115/head
Chris Lu 5 years ago
parent
commit
db30a46050
  1. 2
      weed/storage/volume_vacuum.go

2
weed/storage/volume_vacuum.go

@ -314,7 +314,7 @@ func (v *Volume) copyDataAndGenerateIndexFile(dstName, idxName string, prealloca
var (
dst, idx *os.File
)
if dst, err = createVolumeFile(dstName, preallocate, v.MemoryMapMaxSizeMb); err != nil {
if dst, err = createVolumeFile(dstName, preallocate, 0); err != nil {
return
}
defer dst.Close()

Loading…
Cancel
Save