D16532: Avoid deadlocking Akonadi on duplicates during merge
Daniel Vrátil
noreply at phabricator.kde.org
Sun Nov 4 10:20:55 GMT 2018
dvratil added a comment.
This is kinda dangerous: if the RIDs are duplicated, we cannot know if all the matching Items are just multiple instance of the same Item: they can be two completely different Items, accidentally having the same RID stored in the DB. In such a situation, this patch will correctly update the content of the rightful RID owner, but destroy the content of the Item with the broken RID.
How about only merging with candidates that have the same size? This problem is almost exclusive to emails, and emails don't generally change their size.
REPOSITORY
R165 Akonadi
REVISION DETAIL
https://phabricator.kde.org/D16532
To: carewolf, dvratil
Cc: kde-pim, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20181104/a1db5be4/attachment.html>
More information about the kde-pim
mailing list