summaryrefslogtreecommitdiff
path: root/source3/printing/printing.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-06-22 18:56:26 +0200
committerJeremy Allison <jra@samba.org>2022-06-30 22:08:39 +0000
commit9080cd30d517cb50954e440bb4475c2eeb678906 (patch)
tree0589e253aaab8a166225fdf8c79d179904379b3f /source3/printing/printing.c
parent5903657bd9bd3b4f96b3ddf4748846465b617edf (diff)
downloadsamba-9080cd30d517cb50954e440bb4475c2eeb678906.tar.gz
s3:printing: Do not clear the printer-list.tdb
With the new dcerpc architecture we need to keep printer-list.tdb around. A spoolss dcerpc call will start rpc-spoolssd which will then start the background queue process. However in order to enum the printers we need have a printer-list.tdb. Depending on the number of printers this task can take several seconds. It is unlinkly that the printer-list will change all the time, so we might provide outdated data till it gets refreshed, but this is better than providing no printer list at all. If there are a lot of printers, the idle_seconds for the rpc-spoolssd should be increased so that the background task can finish. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15082 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jun 30 22:08:39 UTC 2022 on sn-devel-184
Diffstat (limited to 'source3/printing/printing.c')
-rw-r--r--source3/printing/printing.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 82903359fc3..dbe5a20e382 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -62,10 +62,6 @@ bool print_backend_init(struct messaging_context *msg_ctx)
bool ok;
char *print_cache_path;
- if (!printer_list_parent_init()) {
- return false;
- }
-
print_cache_path = cache_path(talloc_tos(), "printing");
if (print_cache_path == NULL) {
return false;