From 84ace7f4c7c25df9b422b6be85c78195af79fc0e Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 20 Jan 2016 14:05:05 +0000 Subject: [PATCH] use packs only for temporary ops --- services/track-changes/app/coffee/UpdatesManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/track-changes/app/coffee/UpdatesManager.coffee b/services/track-changes/app/coffee/UpdatesManager.coffee index 97a630ec53..9f4ae4580f 100644 --- a/services/track-changes/app/coffee/UpdatesManager.coffee +++ b/services/track-changes/app/coffee/UpdatesManager.coffee @@ -47,7 +47,7 @@ module.exports = UpdatesManager = if rawUpdates.length == 0 return callback() - if not lastCompressedUpdate? or lastCompressedUpdate.pack? # handle pack append as a special case + if temporary and (not lastCompressedUpdate? or lastCompressedUpdate.pack?) # handle pack append as a special case UpdatesManager._updatePack project_id, doc_id, rawUpdates, temporary, lastCompressedUpdate, lastVersion, callback else #use the existing op code UpdatesManager._updateOp project_id, doc_id, rawUpdates, temporary, lastCompressedUpdate, lastVersion, callback