don't try to append to packs when using the old op code

This commit is contained in:
Brian Gough 2016-01-22 10:45:24 +00:00
parent 84ace7f4c7
commit 9b2cd11cd4

View file

@ -50,6 +50,7 @@ module.exports = UpdatesManager =
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
lastCompressedUpdate = null if lastCompressedUpdate?.pack? # can't handle packs with op code
UpdatesManager._updateOp project_id, doc_id, rawUpdates, temporary, lastCompressedUpdate, lastVersion, callback
_updatePack: (project_id, doc_id, rawUpdates, temporary, lastCompressedUpdate, lastVersion, callback) ->