mirror of
https://github.com/apache/jclouds.git
synced 2025-02-21 18:06:03 +00:00
Merge pull request #677 from andrewgaul/transient-toctou
Eliminate unlikely transient blobstore TOCTOU bug
This commit is contained in:
commit
4a6947ac61
@ -79,8 +79,9 @@ public class TransientStorageStrategy {
|
||||
}
|
||||
|
||||
public void removeBlob(final String containerName, final String blobName) {
|
||||
if (containerToBlobs.containsKey(containerName))
|
||||
containerToBlobs.get(containerName).remove(blobName);
|
||||
Map<String, Blob> map = containerToBlobs.get(containerName);
|
||||
if (map != null)
|
||||
map.remove(blobName);
|
||||
}
|
||||
|
||||
public Iterable<String> getBlobKeysInsideContainer(final String containerName) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user