From 3e61c97a7e20a55be53f60c761091933ced53570 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Tue, 28 Dec 2010 15:54:54 +0100 Subject: 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. --- source3/printing/pcap.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source3/printing/pcap.c') 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")); -- cgit