aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-03-10 13:32:22 -0700
committerChris Lu <chris.lu@gmail.com>2020-03-10 13:32:22 -0700
commit88a110e67ed413913a22fbe4e4b965590b56e0b1 (patch)
tree755b089d17263bdc837f75ca2ad6a90deda569f1
parent43e626157956db8687ec5001171a5b2e1ffaae08 (diff)
downloadseaweedfs-88a110e67ed413913a22fbe4e4b965590b56e0b1.tar.xz
seaweedfs-88a110e67ed413913a22fbe4e4b965590b56e0b1.zip
release file handle
-rw-r--r--weed/storage/volume_vacuum.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.go
index c8be1d9f5..5d712c7ff 100644
--- a/weed/storage/volume_vacuum.go
+++ b/weed/storage/volume_vacuum.go
@@ -381,6 +381,7 @@ func copyDataBasedOnIndexFile(srcDatName, srcIdxName, dstDatName, datIdxName str
return err
}
srcDatBackend = backend.NewDiskFile(dataFile)
+ defer srcDatBackend.Close()
now := uint64(time.Now().Unix())