Blob store overwriting

This commit is contained in:
Michael Snoyman 2014-10-20 14:47:08 +03:00
parent 5e4dcc090e
commit e32df84ac4

View File

@ -130,6 +130,9 @@ cachedS3Store cache creds bucket prefix manager =
$ requestBodySource len
$ sourceHandle inH)
void $ Aws.readResponseIO res
liftIO $ IO.withFile fp IO.ReadMode $ \inH -> withAcquire
(storeWrite' (fileStore cache) key)
(sourceHandle inH $$)
else storeWrite' (fileStore cache) key
, storeRead' = \key ->
if shouldBackup key