Fix deleteAndVerifyContainerGone return value

Return true if the container does not exist -- this matches the
behavior of Atmos and Swift.  This allows deleteAndEnsurePathGone to
terminate correctly with S3.
This commit is contained in:
Andrew Gaul 2012-09-19 13:29:16 -07:00 committed by Andrew Gaul
parent 28d766b9df
commit 0c440c9c8a
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class S3Utils {
*/
public static boolean deleteAndVerifyContainerGone(S3Client sync, String container) {
sync.deleteBucketIfEmpty(container);
return sync.bucketExists(container);
return !sync.bucketExists(container);
}
private static final Predicate<Annotation> ANNOTATIONTYPE_BUCKET = new Predicate<Annotation>() {