mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Fix memory not being unmapped
This commit is contained in:
parent
840ccdc35d
commit
1e62a2b233
|
@ -49,10 +49,10 @@ func (v *Volume) Destroy() (err error) {
|
|||
err = fmt.Errorf("volume %d is compacting", v.Id)
|
||||
return
|
||||
}
|
||||
mem_map, exists := memory_map.FileMemoryMap[v.FileName()]
|
||||
mem_map, exists := memory_map.FileMemoryMap[v.dataFile.Name()]
|
||||
if exists {
|
||||
mem_map.DeleteFileAndMemoryMap()
|
||||
delete(memory_map.FileMemoryMap, v.FileName())
|
||||
delete(memory_map.FileMemoryMap, v.dataFile.Name())
|
||||
}
|
||||
|
||||
v.Close()
|
||||
|
|
Loading…
Reference in a new issue