From 283798a2204bd19319d9ad07f9ff2e3d301a9f4a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 7 Oct 2015 13:42:36 +0200 Subject: [PATCH] remove locking for chunks --- apps/dav/lib/connector/sabre/file.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/dav/lib/connector/sabre/file.php b/apps/dav/lib/connector/sabre/file.php index df9d98b979..961532daf5 100644 --- a/apps/dav/lib/connector/sabre/file.php +++ b/apps/dav/lib/connector/sabre/file.php @@ -350,13 +350,9 @@ class File extends Node implements IFile { throw new NotImplemented('Invalid chunk name'); } - $this->changeLock(ILockingProvider::LOCK_EXCLUSIVE); - $chunk_handler = new \OC_FileChunking($info); $bytesWritten = $chunk_handler->store($info['index'], $data); - $this->changeLock(ILockingProvider::LOCK_SHARED); - //detect aborted upload if (isset ($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'PUT') { if (isset($_SERVER['CONTENT_LENGTH'])) {