diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-04-25 18:23:26 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-04-25 18:23:26 +0200 |
commit | 6c0d61c9a8aebf60781ceb489c4902b387fcd3ac (patch) | |
tree | 0d50df6868d159e423fce097c55cba0485e110e3 | |
parent | 94aa8f9306eb33ea14ee658b4c60b05393668530 (diff) | |
download | nextcloud-server-6c0d61c9a8aebf60781ceb489c4902b387fcd3ac.tar.gz nextcloud-server-6c0d61c9a8aebf60781ceb489c4902b387fcd3ac.zip |
Revert "add locks in the scanner to prevent multiple scanners running on the same files"
This reverts commit fd8e3f730169ef97de98578b5b7aa726951a424e.
-rw-r--r-- | lib/private/files/cache/scanner.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php index db32c0b82eb..b0890dcdc00 100644 --- a/lib/private/files/cache/scanner.php +++ b/lib/private/files/cache/scanner.php @@ -261,7 +261,6 @@ class Scanner extends BasicEmitter { $reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : self::REUSE_ETAG; } if ($lock) { - $this->storage->acquireLock('scanner::' . $path, ILockingProvider::LOCK_EXCLUSIVE, $this->lockingProvider); $this->storage->acquireLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider); } $data = $this->scanFile($path, $reuse, -1, null, $lock); @@ -271,7 +270,6 @@ class Scanner extends BasicEmitter { } if ($lock) { $this->storage->releaseLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider); - $this->storage->releaseLock('scanner::' . $path, ILockingProvider::LOCK_EXCLUSIVE, $this->lockingProvider); } return $data; } |