<table><tr><td style="">bruns created this revision.<br />bruns added reviewers: Baloo, ngraham.<br />Herald added projects: Frameworks, Baloo.<br />Herald added a subscriber: kde-frameworks-devel.<br />bruns 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/D27923">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>firstRun is an internal state of baloo, there is no need to write it to<br />
the config. We can determine it from the existence of the DB file. In<br />
case the DB is only populated partially, the remainder will be picked<br />
up by the UnnindexedFileIndexer.</p>
<p>Delay the content indexing during startup. Currently, we only delay<br />
the UnindexedFileIndexer and StaleFileIndexer, but files already flagged<br />
for indexing would be picked up immediately.</p>
<p>Apply the same delay also to the initial run.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>A) First run:<br />
kill baloo_file manually, delete the index<br />
start baloo_file -> 5 second delay</p>
<p>B) Login<br />
kill baloo_file manually<br />
touch some files<br />
start baloo_file -> content indexing delayed</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>BRANCH</strong><div><div>submit</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27923">https://phabricator.kde.org/D27923</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/unit/file/filewatchtest.cpp<br />
src/file/fileindexerconfig.cpp<br />
src/file/fileindexerconfig.h<br />
src/file/fileindexscheduler.cpp<br />
src/file/fileindexscheduler.h<br />
src/file/firstrunindexer.cpp<br />
src/file/indexerstate.h<br />
src/file/main.cpp<br />
src/file/mainhub.cpp<br />
src/file/mainhub.h<br />
src/file/migrator.cpp<br />
src/lib/indexerconfig.cpp</div></div></div><br /><div><strong>To: </strong>bruns, Baloo, ngraham<br /><strong>Cc: </strong>kde-frameworks-devel, hurikhan77, lots0logs, LeGast00n, cblack, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams<br /></div>