fix reversion in recent CoW changes
File handle accidentially left open is both a FD leak and causes the haskell RTS to reject opening it again with "file is locked".
This commit is contained in:
parent
3d9d1d1416
commit
fee6504388
4 changed files with 28 additions and 1 deletions
|
@ -494,7 +494,8 @@ retrieveExportWithContentIdentifierM dir cow loc cid dest mkkey p =
|
|||
storeExportWithContentIdentifierM :: RawFilePath -> CopyCoWTried -> FilePath -> Key -> ExportLocation -> [ContentIdentifier] -> MeterUpdate -> Annex ContentIdentifier
|
||||
storeExportWithContentIdentifierM dir cow src k loc overwritablecids p = do
|
||||
liftIO $ createDirectoryUnder dir (toRawFilePath destdir)
|
||||
withTmpFileIn destdir template $ \tmpf _tmph -> do
|
||||
withTmpFileIn destdir template $ \tmpf tmph -> do
|
||||
liftIO $ hClose tmph
|
||||
fileCopierUnVerified cow src tmpf k p
|
||||
let tmpf' = toRawFilePath tmpf
|
||||
resetAnnexFilePerm tmpf'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue