mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-17 19:48:35 +02:00
in memory cleanup
This commit is contained in:
1 parent
1a124d1fd8
commit
3843a75ac6
1 file changed
+2
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user