summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorChristopher Bartz <bartz@dkrz.de>2017-08-14 15:03:30 +0200
committerChristopher Bartz <bartz@dkrz.de>2017-08-14 17:35:04 +0200
commitbbd8797f1e28e7585e016fdbeb5b9e390f184806 (patch)
tree59be4019649e6e16040c756e6bbe469f50b9cac2 /apps/files_external
parent317521c7e7f5dc3c2bbaf55cada8fb84b905d8a6 (diff)
downloadnextcloud-server-bbd8797f1e28e7585e016fdbeb5b9e390f184806.tar.gz
nextcloud-server-bbd8797f1e28e7585e016fdbeb5b9e390f184806.zip
Remove tmpFiles Array in Swift.php
tmpFiles Array is unnecessary and there has been a reference without an assignment which lead to a bug making swift external storage unuseable.
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Lib/Storage/Swift.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php
index 57df4aa01a5..c9de5ba97a9 100644
--- a/apps/files_external/lib/Lib/Storage/Swift.php
+++ b/apps/files_external/lib/Lib/Storage/Swift.php
@@ -75,11 +75,6 @@ class Swift extends \OC\Files\Storage\Common {
private $id;
/**
- * @var array
- */
- private static $tmpFiles = array();
-
- /**
* Key value cache mapping path to data object. Maps path to
* \OpenCloud\OpenStack\ObjectStorage\Resource\DataObject for existing
* paths and path to false for not existing paths.
@@ -617,7 +612,7 @@ class Swift extends \OC\Files\Storage\Common {
$fileData = fopen($tmpFile, 'r');
$this->getContainer()->uploadObject($path, $fileData);
// invalidate target object to force repopulation on fetch
- $this->objectCache->remove(self::$tmpFiles[$tmpFile]);
+ $this->objectCache->remove($path);
unlink($tmpFile);
}