[Nepomuk] Review Request: Do not reindex files on only WriteOnClose Events
Vishesh Handa
handa.vish at gmail.com
Thu Jan 26 14:12:01 UTC 2012
> On Jan. 26, 2012, 1:48 p.m., Alex Fiestas wrote:
> > The only thing I don't like from this approach is that we are listening now for an even that could happen a LOT of times and we only need it one time so it seems to me like a waste of resources.
> >
> > The low level inotify has a way of listening only 1 time for an event, can we export that functionality? if not, can we at least change the mask once we got the frirst Modify event?
> >
> > Also something stupid but important for some people, is Nepomuk following kdelibs style? if it is then you are missing {} (and if nepomuk is not following it should :p)
I'll try to address the multiple modify events in another patch. It is a waste of resources.
I always found the extra {} stupid. If Sebastian wants it, I'll add them.
- Vishesh
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103794/#review10091
-----------------------------------------------------------
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/e2a869db/attachment.html>
More information about the Nepomuk
mailing list