diff options
| author | Taehyung Lim <ehooizlo@gmail.com> | 2024-06-29 05:04:51 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-28 13:04:51 -0700 |
| commit | 4d0bf6ddd4caf2cd768d143c68dfdcf72fe933e9 (patch) | |
| tree | ea934008dd1faeaf61b03de65dbedddd862bbc0e /weed/storage/disk_location.go | |
| parent | 81188ec9cb30aed45d206022f737dd8bb7307458 (diff) | |
| download | seaweedfs-4d0bf6ddd4caf2cd768d143c68dfdcf72fe933e9.tar.xz seaweedfs-4d0bf6ddd4caf2cd768d143c68dfdcf72fe933e9.zip | |
fixed fail to initialize existing ec volume when volume server has separate index dictory (#5723)
Diffstat (limited to 'weed/storage/disk_location.go')
| -rw-r--r-- | weed/storage/disk_location.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } } |
