fix leveldb mount bug
This commit is contained in:
@@ -168,6 +168,7 @@ func (l *DiskLocation) UnloadVolume(vid VolumeId) error {
|
|||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("Volume not loaded, VolumeId: %d", vid)
|
return fmt.Errorf("Volume not loaded, VolumeId: %d", vid)
|
||||||
}
|
}
|
||||||
|
l.volumes[vid].Close()
|
||||||
delete(l.volumes, vid)
|
delete(l.volumes, vid)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user