From f0d1e7bd05e962e1f432cb1699229de8d194714a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 5 Oct 2021 02:31:44 -0700 Subject: [PATCH] skip ec volumes when loading normal volumes --- weed/storage/disk_location.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index f16963356..c6fceb2c2 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -95,6 +95,11 @@ func (l *DiskLocation) loadExistingVolume(fileInfo os.FileInfo, needleMapKind Ne return false } + // skip ec volumes + if util.FileExists(l.Directory + "/" + volumeName + ".ecx") { + return false + } + // check for incomplete volume noteFile := l.Directory + "/" + volumeName + ".note" if util.FileExists(noteFile) {