[Pkg-owncloud-commits] [owncloud] 106/205: Rollback folder scan if an entry was locked

David Prévot taffit at moszumanska.debian.org
Thu Jul 2 17:37:01 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 8859004a2bb1a65d71553b55562c79d9a20cfb3e
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Wed Jun 24 15:42:00 2015 +0200

    Rollback folder scan if an entry was locked
---
 lib/private/files/cache/scanner.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php
index 12aa052..50609e1 100644
--- a/lib/private/files/cache/scanner.php
+++ b/lib/private/files/cache/scanner.php
@@ -357,6 +357,11 @@ class Scanner extends BasicEmitter {
 				// log and ignore
 				\OC_Log::write('core', 'Exception while scanning file "' . $child . '": ' . $ex->getMessage(), \OC_Log::DEBUG);
 				$exceptionOccurred = true;
+			} catch (\OCP\Lock\LockedException $e) {
+				if ($this->useTransactions) {
+					\OC_DB::rollback();
+				}
+				throw $e;
 			}
 		}
 		$removedChildren = \array_diff(array_keys($existingChildren), $newChildren);

-- 
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