printing: drop pcap_cache_loaded() guard around load_printers()
authorDavid Disseldorp <ddiss@samba.org>
Tue, 29 Jan 2019 00:50:15 +0000 (01:50 +0100)
committerNoel Power <npower@samba.org>
Fri, 1 Feb 2019 15:08:25 +0000 (16:08 +0100)
commit0ae7c3144a30910adb1e54cf46d54d42a1036839
tree59fd073271cd0938ab73ab68787fc273744471e5
parentbdb90ec974b31a6430a2f2329364b01d6f7270c6
printing: drop pcap_cache_loaded() guard around load_printers()

Add the pcap_cache_loaded() check to load_printers() and return early
if it returns false. This simplifies callers in preparation for checking
lp_load_printers() in the printcap cache update code-path.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13766

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/printing/load.c
source3/printing/queue_process.c
source3/printing/spoolssd.c