fix leveldb mount bug

This commit is contained in:
liwenlong05 2018-05-03 11:20:38 +08:00
parent 230258702f
commit 02a1597642

View file

@ -168,6 +168,7 @@ func (l *DiskLocation) UnloadVolume(vid VolumeId) error {
if !ok {
return fmt.Errorf("Volume not loaded, VolumeId: %d", vid)
}
l.volumes[vid].Close()
delete(l.volumes, vid)
return nil
}