[Pkg-owncloud-commits] [owncloud] 44/273: delete object without downloading it first
David Prévot
taffit at moszumanska.debian.org
Fri Jul 4 03:12:56 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 8e6cb6dc54f4b21031cc467ad7aadeb8c677acd1
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date: Wed Jun 25 14:53:38 2014 +0200
delete object without downloading it first
---
lib/private/files/objectstore/swift.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/private/files/objectstore/swift.php b/lib/private/files/objectstore/swift.php
index 8957c8f..71aae23 100644
--- a/lib/private/files/objectstore/swift.php
+++ b/lib/private/files/objectstore/swift.php
@@ -135,8 +135,8 @@ class Swift implements IObjectStore {
*/
public function deleteObject($urn) {
$this->init();
- $object = $this->container->getObject($urn);
- $object->delete();
+ // see https://github.com/rackspace/php-opencloud/issues/243#issuecomment-30032242
+ $this->container->dataObject()->setName($urn)->delete();
}
public function deleteContainer($recursive = false) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list