From 692e8c657ce0cf857adae058971bba5e825bbb9a Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 24 Sep 2015 08:53:09 +0100 Subject: [PATCH] Revert to the default lock timeout now we have write barriers Revert "increase lock timeouts for archiving" This reverts commit 9eee1b383772adf058130d6e5eab409f57ce03cd. --- services/track-changes/app/coffee/DocArchiveManager.coffee | 5 ----- 1 file changed, 5 deletions(-) diff --git a/services/track-changes/app/coffee/DocArchiveManager.coffee b/services/track-changes/app/coffee/DocArchiveManager.coffee index 456bca8d07..bb3c66eccf 100644 --- a/services/track-changes/app/coffee/DocArchiveManager.coffee +++ b/services/track-changes/app/coffee/DocArchiveManager.coffee @@ -7,11 +7,6 @@ _ = require "underscore" async = require "async" settings = require("settings-sharelatex") -# increase lock timeouts because archiving can be slow -LockManager.LOCK_TEST_INTERVAL = 500 # 500ms between each test of the lock -LockManager.MAX_LOCK_WAIT_TIME = 30000 # 30s maximum time to spend trying to get the lock -LockManager.LOCK_TTL = 30 # seconds - module.exports = DocArchiveManager = archiveAllDocsChanges: (project_id, callback = (error, docs) ->) ->