CACHE_REQ: Ensure the domains are updated for "filter" related calls
As contacting the infopipe responder on a "filter" related call may lead
to the situation where the cr_domains' list is not populated yet (as the
domains and subdomains lists from the data provider are not processed
yet), let's explicitly call sss_dp_get_domains() for those cases and
avoid returning a wrong result to the caller.
This situation may happen only because the schedule_get_domains_task(),
that's called when the infopipe responder is initialized, may take some
time to run/finish.
While I'm not exactly sure whether it's the best solution to avoid the
"race", it seems to be sane enough to avoid the issues.
Signed-off-by: Fabiano Fidêncio <firstname.lastname@example.org>
Reviewed-by: Sumit Bose <email@example.com>
Reviewed-by: Pavel Březina <firstname.lastname@example.org>