File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/dav/lib/Connector/Sabre Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,11 @@ public function createFile($name, $data = null) {
105105
106106 // only allow 1 process to upload a file at once but still allow reading the file while writing the part file
107107 $ node ->acquireLock (ILockingProvider::LOCK_SHARED );
108- $ this ->fileView ->lockFile ($ path . '.upload.part ' , ILockingProvider::LOCK_EXCLUSIVE );
108+ $ this ->fileView ->lockFile ($ this -> path . ' / ' . $ name . '.upload.part ' , ILockingProvider::LOCK_EXCLUSIVE );
109109
110110 $ result = $ node ->put ($ data );
111111
112- $ this ->fileView ->unlockFile ($ path . '.upload.part ' , ILockingProvider::LOCK_EXCLUSIVE );
112+ $ this ->fileView ->unlockFile ($ this -> path . ' / ' . $ name . '.upload.part ' , ILockingProvider::LOCK_EXCLUSIVE );
113113 $ node ->releaseLock (ILockingProvider::LOCK_SHARED );
114114 return $ result ;
115115 } catch (\OCP \Files \StorageNotAvailableException $ e ) {
You can’t perform that action at this time.
0 commit comments