mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 06:37:24 +08:00
close file in ScanVolumeFile()
fix https://github.com/chrislusf/seaweedfs/issues/761
This commit is contained in:
@@ -193,6 +193,7 @@ func ScanVolumeFile(dirname string, collection string, id VolumeId,
|
||||
if err = visitSuperBlock(v.SuperBlock); err != nil {
|
||||
return fmt.Errorf("Failed to process volume %d super block: %v", id, err)
|
||||
}
|
||||
defer v.Close()
|
||||
|
||||
version := v.Version()
|
||||
|
||||
|
Reference in New Issue
Block a user