Browse Source

skip ec volumes when loading normal volumes

pull/2380/head
Chris Lu 3 years ago
parent
commit
f0d1e7bd05
  1. 5
      weed/storage/disk_location.go

5
weed/storage/disk_location.go

@ -95,6 +95,11 @@ func (l *DiskLocation) loadExistingVolume(fileInfo os.FileInfo, needleMapKind Ne
return false return false
} }
// skip ec volumes
if util.FileExists(l.Directory + "/" + volumeName + ".ecx") {
return false
}
// check for incomplete volume // check for incomplete volume
noteFile := l.Directory + "/" + volumeName + ".note" noteFile := l.Directory + "/" + volumeName + ".note"
if util.FileExists(noteFile) { if util.FileExists(noteFile) {

Loading…
Cancel
Save