If there are no checkpoints, the document fails to sync

pull/1/head
Caleb James DeLisle 2016-05-30 12:29:58 +02:00
parent 599f5aeec8
commit ba4dba24dd
1 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,10 @@ const getHistory = function (ctx, channelName, handler, cb) {
}
//console.log(messageBuf[startPoint]);
}
if (cpCount < 2) {
// no checkpoints.
for (var x = msgBuff2.pop(); x; x = msgBuff2.pop()) { handler(x); }
}
cb();
});
};