diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-30 23:23:44 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-30 23:23:44 +0100 |
commit | 361b70e4d7a80e1aea930a4a9439394c3e30af18 (patch) | |
tree | a5be63f58acc30283b997128c9416b1374564332 | |
parent | 8305ae6b091a63f0818b263fea2fa398311f7897 (diff) | |
parent | 91fc933432db4ee37bdc8e6671d4eec512de326a (diff) | |
download | nextcloud-server-361b70e4d7a80e1aea930a4a9439394c3e30af18.tar.gz nextcloud-server-361b70e4d7a80e1aea930a4a9439394c3e30af18.zip |
Merge pull request #13803 from owncloud/revert-close-cursor-stable7
Revert "Close cursor early in calculateFolderSize" for now
-rw-r--r-- | lib/private/files/cache/cache.php | 3 | ||||
-rw-r--r-- | lib/private/files/cache/homecache.php | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index 8322b0f6b9c..7ea00325a10 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -540,7 +540,6 @@ class Cache { 'WHERE `parent` = ? AND `storage` = ?'; $result = \OC_DB::executeAudited($sql, array($id, $this->getNumericStorageId())); if ($row = $result->fetchRow()) { - $result->closeCursor(); list($sum, $min, $unencryptedSum) = array_values($row); $sum = 0 + $sum; $min = 0 + $min; @@ -563,8 +562,6 @@ class Cache { if ($totalSize !== -1 and $unencryptedSum > 0) { $totalSize = $unencryptedSum; } - } else { - $result->closeCursor(); } } return $totalSize; diff --git a/lib/private/files/cache/homecache.php b/lib/private/files/cache/homecache.php index ad7f587b8b6..2b3967c8807 100644 --- a/lib/private/files/cache/homecache.php +++ b/lib/private/files/cache/homecache.php @@ -35,7 +35,6 @@ class HomeCache extends Cache { 'WHERE `parent` = ? AND `storage` = ? AND `size` >= 0'; $result = \OC_DB::executeAudited($sql, array($id, $this->getNumericStorageId())); if ($row = $result->fetchRow()) { - $result->closeCursor(); list($sum, $unencryptedSum) = array_values($row); $totalSize = 0 + $sum; $unencryptedSize = 0 + $unencryptedSum; |