remove locking for chunks
This commit is contained in:
parent
760335c57d
commit
283798a220
|
@ -350,13 +350,9 @@ class File extends Node implements IFile {
|
||||||
throw new NotImplemented('Invalid chunk name');
|
throw new NotImplemented('Invalid chunk name');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->changeLock(ILockingProvider::LOCK_EXCLUSIVE);
|
|
||||||
|
|
||||||
$chunk_handler = new \OC_FileChunking($info);
|
$chunk_handler = new \OC_FileChunking($info);
|
||||||
$bytesWritten = $chunk_handler->store($info['index'], $data);
|
$bytesWritten = $chunk_handler->store($info['index'], $data);
|
||||||
|
|
||||||
$this->changeLock(ILockingProvider::LOCK_SHARED);
|
|
||||||
|
|
||||||
//detect aborted upload
|
//detect aborted upload
|
||||||
if (isset ($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'PUT') {
|
if (isset ($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'PUT') {
|
||||||
if (isset($_SERVER['CONTENT_LENGTH'])) {
|
if (isset($_SERVER['CONTENT_LENGTH'])) {
|
||||||
|
|
Loading…
Reference in New Issue