[Kde-pim] Review Request: Use hashes in the SingleFileResource take two.

Bertjan Broeksema b.broeksema at home.nl
Thu Jul 9 14:52:52 BST 2009


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/965/#review1515
-----------------------------------------------------------



trunk/KDE/kdepim/akonadi/resources/shared/singlefileresource.h
<http://reviewboard.kde.org/r/965/#comment947>

    Don't bother this line,removed that one already.


- Bertjan


On 2009-07-09 06:50:32, Bertjan Broeksema wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/965/
> -----------------------------------------------------------
> 
> (Updated 2009-07-09 06:50:32)
> 
> 
> 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/singlefileresourcebase.cpp 993641 
>   trunk/KDE/kdepim/akonadi/resources/shared/singlefileresourcebase.h 993641 
>   trunk/KDE/kdepim/akonadi/resources/shared/singlefileresource.h 993641 
> 
> 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