<table><tr><td style="">poboiko created this revision.<br />poboiko added reviewers: Baloo, Frameworks, vhanda.<br />Herald added projects: Frameworks, Baloo.<br />Herald added a subscriber: kde-frameworks-devel.<br />poboiko requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15939">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Right now, if a file was moved / removed while baloo_file was not running<br />
(a common use-case for those who have dualboot), there is no way baloo will<br />
become aware of such change (apart from running <tt style="background: #ebebeb; font-size: 13px;">balooctl check</tt> by hand).</p>

<p>There will be stale (if a file was removed) or invalid (pointing to non-existing file,<br />
if a file was moved) index entries, they will pop up if user performs search, which is<br />
frustrating. I suggest performing those checks on <tt style="background: #ebebeb; font-size: 13px;">baloo_file</tt> startup.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">balooctl stop && echo "hello world" > ~/new-file && balooctl start</tt></li>
<li class="remarkup-list-item">after some time: <tt style="background: #ebebeb; font-size: 13px;">balooshow ~/new-file</tt>, and see if it's indexed</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>BRANCH</strong><div><div>startup-checks (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15939">https://phabricator.kde.org/D15939</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/file/fileindexscheduler.cpp<br />
src/file/fileindexscheduler.h<br />
src/file/indexerstate.h<br />
src/file/mainhub.cpp</div></div></div><br /><div><strong>To: </strong>poboiko, Baloo, Frameworks, vhanda<br /><strong>Cc: </strong>kde-frameworks-devel, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams<br /></div>