diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-10-05 02:31:44 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-10-05 02:31:44 -0700 |
| commit | f0d1e7bd05e962e1f432cb1699229de8d194714a (patch) | |
| tree | d55692a710718a1a27889242d42ed2b2b86bcc64 /weed/storage/disk_location.go | |
| parent | 332d49432dfc5328b803ddbe540704d303500cfd (diff) | |
| download | seaweedfs-f0d1e7bd05e962e1f432cb1699229de8d194714a.tar.xz seaweedfs-f0d1e7bd05e962e1f432cb1699229de8d194714a.zip | |
skip ec volumes when loading normal volumes
Diffstat (limited to 'weed/storage/disk_location.go')
| -rw-r--r-- | weed/storage/disk_location.go | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |
