https://bugs.kde.org/show_bug.cgi?id=353874

--- Comment #6 from Lukas Ba. <k...@web.de> ---
Re-posting my comments from a duplicate bug here.

It is not possible to clear deleted files from the db, baloo returns the error:
"Could not stat file"

This is because of line 243 in main.cpp, where non-existing files are skipped.

We should be happy that we found a wrong record referring to a non-existing
file in our db of files, and remove the wrong file record instead.

https://github.com/KDE/baloo/compare/master...vitamins:patch-1

Hmm it's not that simple, since the next check also fails if id is 0, and we
seem to need the id to remove the record, but it is 0 for non-existing files.

tr.removeDocument(id)

Can we remove using only the url instead?

Clearing an existing file which is in an indexed path is also problematic,
since it will get added back later on automatically, reverting the clear
action.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to