Diffusion Baloo 7edec3499cbc

[DocumentUrlDB] Avoid manipulation of the whole tree on trivial rename

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

Description

[DocumentUrlDB] Avoid manipulation of the whole tree on trivial rename

Summary:
In case a file or folder is renamed, only the "name" in the IdFilenameDB
has to be updated, the IdTreeDB can be left unmodified.

Currently, a rename has the same effect as removing the file/folder,
eventually removing also its parents, and later adding the exact same
items to the tree again (a rename does not effect the document IDs).

Test Plan:

  1. disable indexer
  2. rename file/folder
  3. reenable indexer

Reviewers: Baloo, ngraham, astippich, poboiko

Reviewed By: Baloo, ngraham

Subscribers: kde-frameworks-devel

Tags: Frameworks, Baloo

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

Details

Committed
brunsJun 10 2019, 5:43 PM
Reviewer
Baloo
Differential Revision
D21694: [DocumentUrlDB] Avoid manipulation of the whole tree on trivial rename
Parents
R293:8e7b54c54764: [DocumentUrlDB] Catch invalid URLs early
Branches
Unknown
Tags
Unknown