Browse Source

fixed fail to initialize existing ec volume when volume server has separate index dictory (#5723)

pull/5724/head
Taehyung Lim 6 months ago
committed by GitHub
parent
commit
4d0bf6ddd4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/storage/disk_location.go

2
weed/storage/disk_location.go

@ -138,7 +138,7 @@ func (l *DiskLocation) loadExistingVolume(dirEntry os.DirEntry, needleMapKind Ne
// skip if ec volumes exists // skip if ec volumes exists
if skipIfEcVolumesExists { if skipIfEcVolumesExists {
if util.FileExists(l.Directory + "/" + volumeName + ".ecx") {
if util.FileExists(l.IdxDirectory + "/" + volumeName + ".ecx") {
return false return false
} }
} }

Loading…
Cancel
Save