diff options
author | David Disseldorp <ddiss@suse.de> | 2010-12-28 15:54:54 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-01-07 15:37:39 -0800 |
commit | 3e61c97a7e20a55be53f60c761091933ced53570 (patch) | |
tree | a2233c9403476befed018959c6d1b5ea448b73ef /source3/printing/pcap.c | |
parent | ff577762b9cb37355f9433850b2119a6411e21da (diff) | |
download | samba-3e61c97a7e20a55be53f60c761091933ced53570.tar.gz samba-3e61c97a7e20a55be53f60c761091933ced53570.tar.bz2 samba-3e61c97a7e20a55be53f60c761091933ced53570.zip |
s3-printing: remove printer_list_need_refresh
printer_list_need_refresh() was used previously to ensure one smbd
process did not attempt to update the printer_list tdb during or soon
after update by another smbd.
It is no longer needed, as pcap updates are now only performed by the
parent smbd process following startup, SIGHUP, config update or printcap
cache time expiry.
Diffstat (limited to 'source3/printing/pcap.c')
-rw-r--r-- | source3/printing/pcap.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c index 7a733b1c3c..7208f4b7f8 100644 --- a/source3/printing/pcap.c +++ b/source3/printing/pcap.c @@ -139,12 +139,6 @@ void pcap_cache_reload(struct tevent_context *ev, return; } - if (!printer_list_need_refresh()) { - /* has been just refeshed, skip */ - DEBUG(5, ("Refresh just happend, skipping.\n")); - return; - } - status = printer_list_mark_reload(); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("Failed to mark printer list for reload!\n")); |