1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-28 05:12:13 +02:00

release file handle

This commit is contained in:
Chris Lu 2020-03-10 13:32:22 -07:00
parent 43e6261579
commit 88a110e67e

View file

@ -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())