mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-03 02:32:35 +01:00
use volumes variable
fix leveldb mount bug
This commit is contained in:
1 parent
02a1597642
commit
b9068c1304
1 file changed
+2
-2
@@ -164,11 +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)
|
||||
}
|
||||
l.volumes[vid].Close()
|
||||
v.Close()
|
||||
delete(l.volumes, vid)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user