smbd: split printer reload processing
commit668127f5f4d91891ca6a901c809746fdb3b79a9c
authorDavid Disseldorp <ddiss@samba.org>
Fri, 1 Aug 2014 14:25:59 +0000 (1 16:25 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Sep 2014 18:39:20 +0000 (2 20:39 +0200)
tree590475091c20acce763107726c475235de64003f
parent051cd1d83c462c6d07073ee60933086181fd5407
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>
(cherry picked from commit 2706af4d78fc9a47a4ac45b373edf276e3a9b354)
source3/printing/queue_process.c
source3/smbd/server_reload.c