Diffusion Baloo bae7a9dd2361

[FileIndexScheduler] Force evaluation of indexerState after suspend/resume

Authored by bruns on Feb 11 2020, 3:50 PM.


[FileIndexScheduler] Force evaluation of indexerState after suspend/resume

When the scheduler is idle when suspending scheduleIndexing() has to be
triggered, otherwise indexerState is only evaluated on the first external
trigger (e.g. a changed file).

On resume, scheduleIndexing() never updated the state, as Suspended did
not qualify as an Idle state. This had the effect of the scheduler being
stuck in the Suspended state.

Test Plan:
balooctl suspend && balooctl status
balooctl resume && balooctl status

Reviewers: Baloo, ngraham

Reviewed By: Baloo, ngraham

Subscribers: kde-frameworks-devel

Tags: Frameworks, Baloo

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