jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds] Set xattr before rename to make blob create atomic (#913)
Date Fri, 05 Feb 2016 07:12:05 GMT
>              }
>           }
> -         setBlobAccess(containerName, blobKey, BlobAccess.PRIVATE);
> +
> +         setBlobAccess(containerName, tmpBlobName, BlobAccess.PRIVATE);
> +
> +         if (!tmpFile.renameTo(outputFile)) {
> +            throw new RuntimeException("Could not rename file " + tmpFile + " to " +
outputFile);

Existing code cleans up `tmpFile` on line 499.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/913/files#r51983961
Mime
View raw message