remove locking for chunks

This commit is contained in:
Robin Appelman 2015-10-07 13:42:36 +02:00
parent 760335c57d
commit 283798a220
1 changed files with 0 additions and 4 deletions

View File

@ -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'])) {