summaryrefslogtreecommitdiff
path: root/source3/printing/printer_list.h
Commit message (Collapse)AuthorAgeFilesLines
* printing: traverse_read the printer list for share updatesDavid Disseldorp2014-08-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | The printcap update procedure involves the background printer process obtaining the printcap information from the printing backend, writing this to printer_list.tdb, and then notifying all smbd processes of the new list. The processes then all attempt to simultaneously traverse printer_list.tdb, in order to update their local share lists. With a large number of printers, and a large number of per-client smbd processes, this traversal results in significant lock contention, mostly due to the fact that the traversal is unnecessarily done with an exclusive (write) lock on the printer_list.tdb database. This commit changes the share update code path to perform a read-only traversal. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10652 Reported-by: Alex K <korobkin+samba@gmail.com> Reported-by: Franz Pförtsch <franz.pfoertsch@brose.com> Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-printing: Get the location info from cups.Günther Deschner2011-05-161-1/+7
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-printing: remove printer_list_need_refreshDavid Disseldorp2011-01-071-9/+0
| | | | | | | | | | 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.
* s3-printing: Document the printer list functions.Andreas Schneider2010-09-151-0/+64
|
* s3-printing: Add method to skip refresh if just happned.Simo Sorce2010-09-151-0/+2
| | | | | | | This way if multiple process try to refresh at the same time we don't do it over and over again. Signed-off-by: Andreas Schneider <asn@cynapses.org>
* s3-printing: Added a printer list database.Simo Sorce2010-09-151-0/+42
Signed-off-by: Andreas Schneider <asn@cynapses.org>