diff options
author | Björn Schießle <schiessle@owncloud.com> | 2016-05-11 16:25:31 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2016-05-20 21:15:11 +0200 |
commit | 81e3787f9cb4936f186b25e0dccb07b4e6dcce83 (patch) | |
tree | 0ca7f8f922bfd2b4cf53b64692ba9d8a37b556fc | |
parent | d23df4cba770c9b49bb6c7820cc865a137667922 (diff) | |
download | nextcloud-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.php | 1 |
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` |