mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-03 10:37:35 +01:00
volume: fix memory leak during compaction
fix https://github.com/chrislusf/seaweedfs/issues/1222
This commit is contained in:
1 parent
1f8fc4b5ed
commit
0871d2cff0
7 files changed
+39
-4
No files matched your search
@@ -70,6 +70,7 @@ func runFix(cmd *Command, args []string) bool {
|
||||
indexFileName := path.Join(*fixVolumePath, baseFileName+".idx")
|
||||
|
||||
nm := needle_map.NewMemDb()
|
||||
defer nm.Close()
|
||||
|
||||
vid := needle.VolumeId(*fixVolumeId)
|
||||
scanner := &VolumeFileScanner4Fix{
|
||||
|
||||
Reference in new issue
Block a user