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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
weed/storage/disk_location.go
|
|
@ -138,7 +138,7 @@ func (l *DiskLocation) loadExistingVolume(dirEntry os.DirEntry, needleMapKind Ne |
|
|
|
|
|
|
|
// skip if ec volumes exists
|
|
|
|
if skipIfEcVolumesExists { |
|
|
|
if util.FileExists(l.Directory + "/" + volumeName + ".ecx") { |
|
|
|
if util.FileExists(l.IdxDirectory + "/" + volumeName + ".ecx") { |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|