[Nepomuk] Review Request: Do not reindex files on only WriteOnClose Events

Sebastian Trueg sebastian at trueg.de
Thu Jan 26 19:32:20 UTC 2012


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


Thanks to quickgit not doing what it should here is a copy of the commit message which explains why your review request sadly needs to go to the bin:

commit 25ce125c5bf43fe0a44ca5797a8234ad4398d6b8
Author: Sebastian Trueg <trueg at kde.org>
Date:   Tue Oct 18 11:41:13 2011 +0200

    Always re-index files on close after write events.
    
    This is required since mmapped files do not create modification events
    while being written.

- Sebastian Trueg


On Jan. 26, 2012, 12:41 p.m., Vishesh Handa wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103794/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2012, 12:41 p.m.)
> 
> 
> Review request for Nepomuk, Alex Fiestas and Sebastian Trueg.
> 
> 
> Description
> -------
> 
> This Filewatcher sends files for reindexing when it receives a WriteOnClose event from inotify. This event is generated whenever a file opened in write mode is closed. Even if they were no changes.
> 
> Programs like Amarok and KTorrent often open the files in write mode even when they don't make any changes. Which results in reindexing of those files.
> 
> For a graphical example - http://www.afiestas.org/nepomukReindexing.ogv
> 
> 
> Diffs
> -----
> 
>   nepomuk/services/filewatch/activefilequeue.h 19d4813 
>   nepomuk/services/filewatch/activefilequeue.cpp 8bb54ed 
>   nepomuk/services/filewatch/nepomukfilewatch.h cfb02fc 
>   nepomuk/services/filewatch/nepomukfilewatch.cpp 60550c2 
>   nepomuk/services/filewatch/test/activefilequeuetest.cpp 0445e8f 
> 
> Diff: http://git.reviewboard.kde.org/r/103794/diff/diff
> 
> 
> Testing
> -------
> 
> All the tests pass, and files are no longer reindexed when the song changes in Amarok.
> 
> 
> Thanks,
> 
> Vishesh Handa
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/nepomuk/attachments/20120126/a637ea3a/attachment.html>


More information about the Nepomuk mailing list