diff options
| author | liwenlong05 <liwenlong05@meituan.com> | 2018-05-03 11:20:38 +0800 |
|---|---|---|
| committer | liwenlong05 <liwenlong05@meituan.com> | 2018-05-03 11:20:38 +0800 |
| commit | 02a159764262dcaf7234ac1d88af1fdb408edd0d (patch) | |
| tree | 375d666014497306dc8c835c99605ef055cb10b5 | |
| parent | 230258702f58a7fdc60d126ff4e3ed493cf9cd04 (diff) | |
| download | seaweedfs-02a159764262dcaf7234ac1d88af1fdb408edd0d.tar.xz seaweedfs-02a159764262dcaf7234ac1d88af1fdb408edd0d.zip | |
fix leveldb mount bug
| -rw-r--r-- | weed/storage/disk_location.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index 99c4f3c34..c656da4ca 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -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 } |
