[Pkg-owncloud-commits] [owncloud] 10/34: Retrieve storage numeric id earlier when still available
David Prévot
taffit at moszumanska.debian.org
Fri Oct 17 01:32:15 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit d6a380613f11b416d7186fbb264e64b7e8ac2c79
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Mon Oct 13 15:52:48 2014 +0200
Retrieve storage numeric id earlier when still available
The numeric id is only available before the storage entry is deleted, so
get it at that time.
Backport of d485c0098d58454b8dbd25e574a363a500244942 from master
---
lib/private/files/cache/storage.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/private/files/cache/storage.php b/lib/private/files/cache/storage.php
index 9ad31a2..7c14a9f 100644
--- a/lib/private/files/cache/storage.php
+++ b/lib/private/files/cache/storage.php
@@ -98,10 +98,10 @@ class Storage {
if (strlen($storageId) > 64) {
$storageId = md5($storageId);
}
+ $numericId = self::getNumericStorageId($storageId);
$sql = 'DELETE FROM `*PREFIX*storages` WHERE `id` = ?';
\OC_DB::executeAudited($sql, array($storageId));
- $numericId = self::getNumericStorageId($storageId);
if (!is_null($numericId)) {
$sql = 'DELETE FROM `*PREFIX*filecache` WHERE `storage` = ?';
\OC_DB::executeAudited($sql, array($numericId));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list