in memory cleanup

This commit is contained in:
chrislu
2025-10-26 09:44:43 -07:00
parent 1a124d1fd8
commit 3843a75ac6
+2
View File
@@ -246,6 +246,8 @@ func (l *DiskLocation) loadAllEcShards() (err error) {
if util.FileExists(datFileName) {
glog.Warningf("Found %d EC shards without .ecx file for volume %d (incomplete encoding interrupted before .ecx creation), cleaning up...",
len(sameVolumeShards), volumeId)
// Clean up any in-memory state before removing files
l.DestroyEcVolume(volumeId)
l.removeEcVolumeFiles(collection, volumeId)
}
}