fixed deleteallkeysinlist which forgot to check the status of the futures

This commit is contained in:
Adrian Cole 2010-03-29 10:43:16 -07:00
parent e45d9e75d4
commit 6ea95932ff
1 changed files with 2 additions and 2 deletions

View File

@ -106,13 +106,13 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr
if (options.isRecursive() && !fullPath.equals(options.getDir())) { if (options.isRecursive() && !fullPath.equals(options.getDir())) {
execute(containerName, options.clone().inDirectory(fullPath)); execute(containerName, options.clone().inDirectory(fullPath));
} }
connection.deleteDirectory(containerName, fullPath); responses.put(md, connection.deleteDirectory(containerName, fullPath));
break; break;
case RELATIVE_PATH: case RELATIVE_PATH:
if (options.isRecursive() && !fullPath.equals(options.getDir())) { if (options.isRecursive() && !fullPath.equals(options.getDir())) {
execute(containerName, options.clone().inDirectory(fullPath)); execute(containerName, options.clone().inDirectory(fullPath));
} }
connection.deleteDirectory(containerName, md.getName()); responses.put(md, connection.deleteDirectory(containerName, md.getName()));
break; break;
case CONTAINER: case CONTAINER:
throw new IllegalArgumentException("Container type not supported"); throw new IllegalArgumentException("Container type not supported");