From b7de6f2f71650132168f3a7426e5273fb40212dc Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 21 Dec 2015 13:52:26 +0000 Subject: [PATCH] don't try to compress updates across point of broken history --- services/track-changes/app/coffee/UpdatesManager.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/services/track-changes/app/coffee/UpdatesManager.coffee b/services/track-changes/app/coffee/UpdatesManager.coffee index c38fb770c4..d2b8683fdf 100644 --- a/services/track-changes/app/coffee/UpdatesManager.coffee +++ b/services/track-changes/app/coffee/UpdatesManager.coffee @@ -41,6 +41,7 @@ module.exports = UpdatesManager = logger.error err: error, doc_id: doc_id, project_id: project_id, "inconsistent doc versions" if Settings.trackchanges?.continueOnError and rawUpdates[0].v > lastVersion + 1 # we have lost some ops - continue to write into the database, we can't recover at this point + lastCompressedUpdate = null else return callback error