Diffusion Baloo 7e5c005e6a3b

[balooctl] Fix "index" command with already indexed, but moved file

Authored by poboiko on Oct 4 2018, 1:07 PM.

Description

[balooctl] Fix "index" command with already indexed, but moved file

Summary:
If I move a file (while baloo was not running) and perform balooctl index on new file
(so that document Id is not changed), it won't update the path of the file, keeping the
invalid entry in index.
Explicitly tell Baloo that we want to update everything concerning this file.

BUG: 397242
FIXED-IN: 5.52

Test Plan:

  1. echo "hello world" >~/file1
  2. balooctl stop
  3. mv ~/file1 ~/file2
  4. balooctl start && balooctl index ~/file2
  5. balooshow file2 and balooshow -x <DOCUMENT_ID_OF_FILE>

The first command should show the right path, and the second command shouldn't complain about bug in Baloo (invalid index entry)

Reviewers: Baloo, Frameworks, ngraham

Reviewed By: Baloo, ngraham

Subscribers: ngraham, kde-frameworks-devel

Tags: Frameworks, Baloo

Differential Revision: https://phabricator.kde.org/D15944

Details

Committed
poboikoOct 8 2018, 10:10 PM
Reviewer
Baloo
Differential Revision
D15944: [balooctl] Fix "index" command with already indexed, but moved file
Parents
R293:2530d160781d: [Timeline] Use categorized logging
Branches
Unknown
Tags
Unknown