diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-07-20 16:56:07 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-07-20 17:58:05 +0200 |
commit | 0e111e1a17140a8a42a3dbf2ecce41e424b2afab (patch) | |
tree | 907f611b9a35de7b895253c7aadd4ffe24e58ca0 /lib/filecache.php | |
parent | 57ed83f2665ef571f5de25a65764640a38c26acd (diff) | |
download | nextcloud-server-0e111e1a17140a8a42a3dbf2ecce41e424b2afab.tar.gz nextcloud-server-0e111e1a17140a8a42a3dbf2ecce41e424b2afab.zip |
fix increasing folder sizes in filecache for custom roots
Diffstat (limited to 'lib/filecache.php')
-rw-r--r-- | lib/filecache.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filecache.php b/lib/filecache.php index d956f34dc48..4b1774925c3 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -126,7 +126,7 @@ class OC_FileCache{ $query=OC_DB::prepare($sql); $result=$query->execute($arguments); if(OC_DB::isError($result)){ - OC_Log::write('files','error while updating file('.$path.') in cache',OC_Log::ERROR); + OC_Log::write('files','error while updating file('.$id.') in cache',OC_Log::ERROR); } } @@ -303,7 +303,7 @@ class OC_FileCache{ */ public static function increaseSize($path,$sizeDiff, $root=false){ if($sizeDiff==0) return; - $id=self::getId($path,''); + $id=self::getId($path,$root); while($id!=-1){//walk up the filetree increasing the size of all parent folders $query=OC_DB::prepare('UPDATE *PREFIX*fscache SET size=size+? WHERE id=?'); $query->execute(array($sizeDiff,$id)); |