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

This commit is contained in:
Taehyung Lim 2024-06-29 05:04:51 +09:00 committed by GitHub
parent 81188ec9cb
commit 4d0bf6ddd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
}