mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
share the document lock between archiving and packing
This commit is contained in:
parent
9d39012b49
commit
b4ffa7d57e
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ module.exports = DocArchiveManager =
|
|||
archiveDocChangesWithLock: (project_id, doc_id, callback = (error) ->) ->
|
||||
job = (releaseLock) ->
|
||||
DocArchiveManager.archiveDocChanges project_id, doc_id, releaseLock
|
||||
LockManager.runWithLock("HistoryArchiveLock:#{doc_id}", job, callback)
|
||||
LockManager.runWithLock("HistoryLock:#{doc_id}", job, callback)
|
||||
|
||||
archiveDocChanges: (project_id, doc_id, callback)->
|
||||
MongoManager.getDocChangesCount doc_id, (error, count) ->
|
||||
|
|
Loading…
Reference in a new issue