overleaf/services/docstore/app/coffee
Henry Oswald 9cfa4b3f84 Don't put docs which are already in s3 through archive job
This fixes the bug we saw with 'RangeError: Maximum call stack size exceeded'
if lots of docs are already in s3 cb() gets called synchronously multiple times quickly
which can cause the execption. I am not sure where the recursion is, maybe inside async.

doing setImmediate(cb) also fixes the issue as I beilve it gives the
process chance to clear the stack. Similar to process.nextTick
2015-09-07 14:11:02 +01:00
..
DocArchiveManager.coffee Don't put docs which are already in s3 through archive job 2015-09-07 14:11:02 +01:00
DocManager.coffee improve doc manager so it calls get doc recursivly 2015-08-13 22:47:33 +01:00
Errors.coffee Add POST end point for updating doc lines 2014-04-29 11:49:09 +01:00
HttpController.coffee add un archive endpoint 2015-08-13 22:48:45 +01:00
mongojs.coffee docstore now only touches doc collection 2015-02-26 14:54:08 +00:00
MongoManager.coffee refactoring 2015-06-02 15:55:22 -03:00