aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2016-05-11 16:25:31 +0200
committerBjörn Schießle <schiessle@owncloud.com>2016-05-20 21:15:11 +0200
commit81e3787f9cb4936f186b25e0dccb07b4e6dcce83 (patch)
tree0ca7f8f922bfd2b4cf53b64692ba9d8a37b556fc
parentd23df4cba770c9b49bb6c7820cc865a137667922 (diff)
downloadnextcloud-server-81e3787f9cb4936f186b25e0dccb07b4e6dcce83.tar.gz
nextcloud-server-81e3787f9cb4936f186b25e0dccb07b4e6dcce83.zip
close cursor after select to avoid db lock
-rw-r--r--apps/files_sharing/lib/external/manager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/external/manager.php b/apps/files_sharing/lib/external/manager.php
index 7dc9f66f114..22525b4e061 100644
--- a/apps/files_sharing/lib/external/manager.php
+++ b/apps/files_sharing/lib/external/manager.php
@@ -338,6 +338,7 @@ class Manager {
$share = $getShare->fetch();
$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'decline');
}
+ $getShare->closeCursor();
$query = $this->connection->prepare('
DELETE FROM `*PREFIX*share_external`