File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
lib/OpenCloud/ObjectStore/Resource Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -184,11 +184,13 @@ public function deleteWithObjects($secondsToWait = null)
184
184
if (0 === $ numObjects ) {
185
185
return $ this ->delete ();
186
186
}
187
+
187
188
// If timeout ($secondsToWait) is not specified by caller,
188
189
// try to estimate it based on number of objects in container
189
190
if (null === $ secondsToWait ) {
190
191
$ secondsToWait = round ($ numObjects / 2 );
191
- }
192
+ }
193
+
192
194
// Attempt to delete all objects and container
193
195
$ endTime = time () + $ secondsToWait ;
194
196
$ containerDeleted = false ;
@@ -208,9 +210,11 @@ public function deleteWithObjects($secondsToWait = null)
208
210
}
209
211
}
210
212
}
213
+
211
214
if (!$ containerDeleted ) {
212
215
throw new ContainerException ('Container could not be deleted. ' );
213
216
}
217
+
214
218
return $ response ;
215
219
}
216
220
You can’t perform that action at this time.
0 commit comments