[XAttrIndexer] Update DocumentTime when XAttrs are updated
ClosedPublic

Authored by bruns on Jun 9 2019, 11:02 PM.

Details

Summary

After modifying a files attributes (like ownership, permissions, tags,
...) the timestamp in the DB would be different to the filesystem
timestamp. The change would only be picked up on next login by the
UnindexedFileIndexer.

Also update the FileNameTerms and DocumentUrl, as renames also change
the ctime. As the WriteTransaction checks for changes, setting the
flags in excess is cheap, but avoids getting the filename out of sync.

Depends on D21694

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.Jun 9 2019, 11:02 PM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptJun 9 2019, 11:02 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Jun 9 2019, 11:02 PM
astippich accepted this revision.Jun 14 2019, 7:32 PM
This revision is now accepted and ready to land.Jun 14 2019, 7:32 PM
This revision was automatically updated to reflect the committed changes.