mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 11:01:37 +00:00
Add files to project in series to avoid lock contention
This commit is contained in:
parent
d93f5fa6be
commit
33904fe7be
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ module.exports = FileSystemImportManager =
|
|||
FileSystemImportManager.addEntity user_id, project_id, parent_folder_id, entry, "#{folderPath}/#{entry}", replace, callback
|
||||
else
|
||||
callback()
|
||||
async.parallelLimit jobs, 5, callback
|
||||
async.series jobs, callback
|
||||
|
||||
addEntity: (user_id, project_id, folder_id, name, path, replace, callback = (error, entity)-> ) ->
|
||||
FileSystemImportManager._isSafeOnFileSystem path, (err, isSafe)->
|
||||
|
|
Loading…
Reference in a new issue