Bläddra i källkod

don't try to compress updates across point of broken history

Brian Gough 10 år sedan
förälder
incheckning
b7de6f2f71
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      services/track-changes/app/coffee/UpdatesManager.coffee

+ 1 - 0
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"
 					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
 					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
 						# we have lost some ops - continue to write into the database, we can't recover at this point
+						lastCompressedUpdate = null
 					else
 					else
 						return callback error
 						return callback error