From db30a460503d3a0c81ae78e621d5acf61585c473 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 29 Oct 2019 23:34:38 -0700 Subject: [PATCH] skip memory mapped file when compacting --- weed/storage/volume_vacuum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.go index f3aa5f1cb..e5d932c9e 100644 --- a/weed/storage/volume_vacuum.go +++ b/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()