Skip to content
Snippets Groups Projects
Commit 29ec0079 authored by Robin Appelman's avatar Robin Appelman
Browse files

Cache: dont migrate permissions, cache them on demain instead

parent 5445b944
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,6 @@ class Upgrade { ...@@ -14,8 +14,6 @@ class Upgrade {
*/ */
private $legacy; private $legacy;
private $permissionsCaches = array();
private $numericIds = array(); private $numericIds = array();
private $mimeTypeIds = array(); private $mimeTypeIds = array();
...@@ -72,9 +70,6 @@ class Upgrade { ...@@ -72,9 +70,6 @@ class Upgrade {
$insertQuery->execute(array($data['id'], $data['storage'], $data['path'], $data['path_hash'], $data['parent'], $data['name'], $insertQuery->execute(array($data['id'], $data['storage'], $data['path'], $data['path_hash'], $data['parent'], $data['name'],
$data['mimetype'], $data['mimepart'], $data['size'], $data['mtime'], $data['encrypted'])); $data['mimetype'], $data['mimepart'], $data['size'], $data['mtime'], $data['encrypted']));
$permissionsCache = $this->getPermissionsCache($data['storage_object']);
$permissionsCache->set($data['id'], $data['user'], $data['permissions']);
} }
/** /**
...@@ -101,18 +96,6 @@ class Upgrade { ...@@ -101,18 +96,6 @@ class Upgrade {
return $newData; return $newData;
} }
/**
* @param \OC\Files\Storage\Storage $storage
* @return Permissions
*/
function getPermissionsCache($storage) {
$storageId = $storage->getId();
if (!isset($this->permissionsCaches[$storageId])) {
$this->permissionsCaches[$storageId] = $storage->getPermissionsCache();
}
return $this->permissionsCaches[$storageId];
}
/** /**
* get the numeric storage id * get the numeric storage id
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment