mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-01-19 23:24:33 +08:00
commit
63c4884b16
@ -164,10 +164,11 @@ func (l *DiskLocation) UnloadVolume(vid VolumeId) error {
|
||||
l.Lock()
|
||||
defer l.Unlock()
|
||||
|
||||
_, ok := l.volumes[vid]
|
||||
v, ok := l.volumes[vid]
|
||||
if !ok {
|
||||
return fmt.Errorf("Volume not loaded, VolumeId: %d", vid)
|
||||
}
|
||||
v.Close()
|
||||
delete(l.volumes, vid)
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user