smbd: split printer reload processing
commit2706af4d78fc9a47a4ac45b373edf276e3a9b354
authorDavid Disseldorp <ddiss@samba.org>
Fri, 1 Aug 2014 14:25:59 +0000 (1 16:25 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 8 Aug 2014 12:10:39 +0000 (8 14:10 +0200)
tree92caf25477931f2ef6b0be6c6b218c52d6961dd8
parent2685df1177ffd39b1af34eb116bd7b24d4b12974
smbd: split printer reload processing

All printer inventory updates are currently done via
delete_and_reload_printers(), which handles registry.tdb updates for
added or removed printers, AD printer unpublishing on removal, as well
as share service creation and deletion.

This change splits this functionality into two functions such that
per-client smbd processes do not perform registry.tdb updates or printer
unpublishing. This is now only performed by the process that performs
the printcap cache update.

This change is similar to ac6604868d1325dd4c872dc0f6ab056d10ebaecf from
the 3.6 branch.

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

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/printing/queue_process.c
source3/smbd/server_reload.c