diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-10-29 23:34:38 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-10-29 23:34:38 -0700 |
| commit | db30a460503d3a0c81ae78e621d5acf61585c473 (patch) | |
| tree | cb14562f35f233b4b7919693d9aa73b14775caac | |
| parent | 5b950c735e3076afabe09ec6d36ca6919e674300 (diff) | |
| download | seaweedfs-db30a460503d3a0c81ae78e621d5acf61585c473.tar.xz seaweedfs-db30a460503d3a0c81ae78e621d5acf61585c473.zip | |
skip memory mapped file when compacting
| -rw-r--r-- | weed/storage/volume_vacuum.go | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
