|
|
|
|
@ -148,7 +148,7 @@ class Cache { |
|
|
|
|
FROM `*PREFIX*filecache` WHERE `parent` = ? ORDER BY `name` ASC'); |
|
|
|
|
$result = $query->execute(array($fileId)); |
|
|
|
|
if (\OC_DB::isError($result)) { |
|
|
|
|
\OCP\Util::writeLog('cache', 'getFolderContents failed: '.$result->getMessage(), \OCP\Util::ERROR); |
|
|
|
|
\OCP\Util::writeLog('cache', 'getFolderContents failed: ' . $result->getMessage(), \OCP\Util::ERROR); |
|
|
|
|
} |
|
|
|
|
$files = $result->fetchAll(); |
|
|
|
|
foreach ($files as &$file) { |
|
|
|
|
@ -376,7 +376,7 @@ class Cache { |
|
|
|
|
$query = \OC_DB::prepare('SELECT `size` FROM `*PREFIX*filecache` WHERE `storage` = ? AND `path_hash` = ?'); |
|
|
|
|
$result = $query->execute(array($this->getNumericStorageId(), $pathHash)); |
|
|
|
|
if( \OC_DB::isError($result)) { |
|
|
|
|
\OCP\Util::writeLog('cache', 'get status failed: '.$result->getMessage(), \OCP\Util::ERROR); |
|
|
|
|
\OCP\Util::writeLog('cache', 'get status failed: ' . $result->getMessage(), \OCP\Util::ERROR); |
|
|
|
|
} |
|
|
|
|
if ($row = $result->fetchRow()) { |
|
|
|
|
if ((int)$row['size'] === -1) { |
|
|
|
|
@ -518,7 +518,7 @@ class Cache { |
|
|
|
|
. ' WHERE `storage` = ? AND `size` = -1 ORDER BY `fileid` DESC',1); |
|
|
|
|
$result = $query->execute(array($this->getNumericStorageId())); |
|
|
|
|
if (\OC_DB::isError($result)) { |
|
|
|
|
\OCP\Util::writeLog('cache', 'getIncomplete failed: '.$result->getMessage(), \OCP\Util::ERROR); |
|
|
|
|
\OCP\Util::writeLog('cache', 'getIncomplete failed: ' . $result->getMessage(), \OCP\Util::ERROR); |
|
|
|
|
} |
|
|
|
|
if ($row = $result->fetchRow()) { |
|
|
|
|
return $row['path']; |
|
|
|
|
|