michaelh created this revision.
michaelh added reviewers: Baloo, Frameworks.
Restricted Application added projects: Frameworks, Baloo.
michaelh requested review of this revision.

REVISION SUMMARY
  Remove stale entries from database
  
  This is mostly based on D11529 <https://phabricator.kde.org/D11529>

TEST PLAN
    $ baloodb clean  --mounted-only  
    Removing stale database contents...
    Ignoring device 2086  
    Ignoring device 2098
    Ignoring device 2069
    Ignoring device 2064
    Ignoring device 2066
    Database has corrupted entries baloo may misbehave, please recreate the DB 
by running $ balooctl disable && balooctl enable
    Removing: device: 2049 inode: 4861 url: /tmp/otto
    ...
    
    Removing: device: 2053 inode: 39208001 url: //Little Witch Academia - 08.mkv
    Removing: device: 2053 inode: 39215245 url: 
    Removed 14965 items
    Elapsed: 4.6921 secs
  
  Second run:
  
    $ baloodb clean  --mounted-only  
    Removing stale database contents...
    access filter QFlags(0x4)
    Ignoring device 2086  
    Ignoring device 2098
    Ignoring device 2066
    Ignoring device 2064
    Ignoring device 2069
    Removing: device: 22 inode: 225383 url: 
    Removing: device: 2053 inode: 34612126 url: 
    Removed 14943 items
    Elapsed: 3.47939 secs

REPOSITORY
  R293 Baloo

BRANCH
  sanitize-clean (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D11753

AFFECTED FILES
  src/engine/databasesanitizer.cpp
  src/engine/databasesanitizer.h
  src/engine/documenturldb.h
  src/tools/baloodb/main.cpp

To: michaelh, #baloo, #frameworks
Cc: smithjd, ashaposhnikov, michaelh, astippich, spoorun, nicolasfella, 
ngraham, alexeymin

Reply via email to