summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-06-13 13:14:38 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-06-13 15:07:41 +0200
commit64471b5d4a235addcc4dde43cb80232a403f8e08 (patch)
tree713c15d8168e89c576a37b87c5b19920f9cca535 /lib/private/Repair.php
parent52a0c939ab8674857bbfe9a9fb0ee7308eee960e (diff)
downloadnextcloud-server-64471b5d4a235addcc4dde43cb80232a403f8e08.tar.gz
nextcloud-server-64471b5d4a235addcc4dde43cb80232a403f8e08.zip
Remove shares of the root folder
Fixes #23265 (A possibly costly) repair job to remove cyclic shares.
Diffstat (limited to 'lib/private/Repair.php')
-rw-r--r--lib/private/Repair.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Repair.php b/lib/private/Repair.php
index bb2967d7e6e..1ed896dac4c 100644
--- a/lib/private/Repair.php
+++ b/lib/private/Repair.php
@@ -36,6 +36,7 @@ use OC\Repair\DropOldJobs;
use OC\Repair\OldGroupMembershipShares;
use OC\Repair\RemoveGetETagEntries;
use OC\Repair\RemoveOldShares;
+use OC\Repair\RemoveRootShares;
use OC\Repair\SharePropagation;
use OC\Repair\SqliteAutoincrement;
use OC\Repair\DropOldTables;
@@ -136,6 +137,7 @@ class Repair implements IOutput{
new SharePropagation(\OC::$server->getConfig()),
new RemoveOldShares(\OC::$server->getDatabaseConnection()),
new AvatarPermissions(\OC::$server->getDatabaseConnection()),
+ new RemoveRootShares(\OC::$server->getDatabaseConnection(), \OC::$server->getUserManager(), \OC::$server->getRootFolder()),
];
}