From 4cb1c1e6103459e54d931b8672674f5f49f8ac2f Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 18 May 2018 11:20:40 +0200 Subject: Skip change-replay for already removed entites. This is required to be able to resolve change-replay failures by removing the entity. --- examples/imapresource/imapresource.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples') 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: { if (operation != Sink::Operation_Creation) { if(oldRemoteId.isEmpty()) { - // return KAsync::error("Tried to replay modification without old remoteId."); - qWarning() << "Tried to replay modification without old remoteId."; + SinkWarning() << "Tried to replay modification without old remoteId."; // Since we can't recover from the situation we just skip over the revision. - // FIXME figure out how we can ever end up in this situation + // This can for instance happen if creation failed, and we then process a removal or modification. return KAsync::null(); } } -- cgit v1.2.3