summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-18 11:20:40 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-18 11:20:40 +0200
commit4cb1c1e6103459e54d931b8672674f5f49f8ac2f (patch)
treefc967b152becd2f6c61055e0d5aab1c31dc4a78f /examples
parent2485dbb0f287d93061bc5098a8e11358d3d0d6f9 (diff)
downloadsink-4cb1c1e6103459e54d931b8672674f5f49f8ac2f.tar.gz
sink-4cb1c1e6103459e54d931b8672674f5f49f8ac2f.zip
Skip change-replay for already removed entites.
This is required to be able to resolve change-replay failures by removing the entity.
Diffstat (limited to 'examples')
-rw-r--r--examples/imapresource/imapresource.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp
index 0527902..4151afa 100644
--- a/examples/imapresource/imapresource.cpp
+++ b/examples/imapresource/imapresource.cpp
@@ -691,10 +691,9 @@ public:
691 { 691 {
692 if (operation != Sink::Operation_Creation) { 692 if (operation != Sink::Operation_Creation) {
693 if(oldRemoteId.isEmpty()) { 693 if(oldRemoteId.isEmpty()) {
694 // return KAsync::error<QByteArray>("Tried to replay modification without old remoteId."); 694 SinkWarning() << "Tried to replay modification without old remoteId.";
695 qWarning() << "Tried to replay modification without old remoteId.";
696 // Since we can't recover from the situation we just skip over the revision. 695 // Since we can't recover from the situation we just skip over the revision.
697 // FIXME figure out how we can ever end up in this situation 696 // This can for instance happen if creation failed, and we then process a removal or modification.
698 return KAsync::null<QByteArray>(); 697 return KAsync::null<QByteArray>();
699 } 698 }
700 } 699 }