[ModifiedFileIndexer] Omit BasicIndexingJob run when not required
ClosedPublic

Authored by bruns on Mar 1 2020, 4:58 PM.

Details

Summary

In case only the mtime has changed (i.e. only contents), only the times
and the content indexing flag have to be updated in the DB. The times
are already available from the fileinfo, so no need to create a
BasicIndexingJob.

Diff Detail

Repository
R293 Baloo
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Mar 1 2020, 4:58 PM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptMar 1 2020, 4:58 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Mar 1 2020, 4:58 PM
anthonyfieroni added inline comments.
src/file/modifiedfileindexer.cpp
118

This check is redundant now, we here only when cTimeChanged is true.

anthonyfieroni added inline comments.Mar 1 2020, 5:09 PM
src/file/modifiedfileindexer.cpp
118

I saw it in other patch, i does not need change.

astippich accepted this revision.Mar 3 2020, 6:56 PM
This revision is now accepted and ready to land.Mar 3 2020, 6:56 PM
This revision was automatically updated to reflect the committed changes.