[Kde-pim] Review Request: Use hashes in the SingleFileResource take two.
Kevin Krammer
kevin.krammer at gmx.at
Thu Jul 30 23:41:41 BST 2009
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/965/#review1863
-----------------------------------------------------------
Ship it!
lets commit and see what widespread testing says
- Kevin
On 2009-07-23 12:36:12, Bertjan Broeksema wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/965/
> -----------------------------------------------------------
>
> (Updated 2009-07-23 12:36:12)
>
>
> Review request for KDE PIM, Kevin Krammer and Volker Krause.
>
>
> Summary
> -------
>
> Second stab at using hashes. This patch makes sure that the has of a file gets saved after a write in a config file. This makes it possible to check if the file has changed between to cold starts of a resource.
>
> If the hash has changed, synchronize is called but first clearCache() as we have to assume that the information that might be/is cached is invalid by now.
>
>
> Diffs
> -----
>
> trunk/KDE/kdepim/akonadi/resources/shared/singlefileresource.h 1001469
> trunk/KDE/kdepim/akonadi/resources/shared/singlefileresourcebase.h 1001469
> trunk/KDE/kdepim/akonadi/resources/shared/singlefileresourcebase.cpp 1001469
>
> Diff: http://reviewboard.kde.org/r/965/diff
>
>
> Testing
> -------
>
> Did some testing with the mbox resource:
> - Changing file between two cold starts -> changed hash correctly detected, DeleteItemOffsets attribute got deleted by clearCache()
> - Changing file while mbox is running -> same results.
> - Not changing the file between two cold starts -> no synchronize() called.
>
>
> Thanks,
>
> Bertjan
>
>
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list