From 4d0bf6ddd4caf2cd768d143c68dfdcf72fe933e9 Mon Sep 17 00:00:00 2001 From: Taehyung Lim Date: Sat, 29 Jun 2024 05:04:51 +0900 Subject: [PATCH] fixed fail to initialize existing ec volume when volume server has separate index dictory (#5723) --- weed/storage/disk_location.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index b7fa82197..9f61ad872 100644 --- a/weed/storage/disk_location.go +++ b/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 } }