[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Akonadi Question when removing items
From:       Martin Koller <kollix () aon ! at>
Date:       2014-03-26 17:56:28
Message-ID: 37727635.X2CM5HQv9T () lapi ! koller
[Download RAW message or body]

On Wednesday 26 March 2014 11:25:04 Daniel Vr=E1til wrote:

> > I have an mbox, set to compact every 1 msg. Having 5 messages in the bo=
x,
> > select first 2 msg, hit "Shift-Del" in kmail.
> > mbox resource gets itemRemoved(), which leads to mbox::purge() which ne=
eds
> > to change all remoteids below. FetchJob however only returns 3 as the s=
econd
> > is already gone.
> =

> Your problem could partially be solved by porting the resource to =

> AgentBase::ObserverV3 so that change notifications are delivered in batch=
es. =

> This would allow you to do compaction after each batch instead of every s=
ingle =

> change.
> =

> Although change notifications are compressed on the server and on the cli=
ent =

> side, it still does not guarantee that two subsequent batches are not =

> generated.
> =

> Delaying the compaction by couple seconds after last batch should cover m=
ost =

> cases however.

well, this is not a safe solution. I can always have this race condition wh=
ere
the agent wants to act on an item which is no longer in the DB.

-- =

Best regards/Sch=F6ne Gr=FC=DFe

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail =

/\                        - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic