[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Tue May 31 21:52:01 UTC 2022


The branch, master has been updated
       via  ac16351ff5a s3:printing: Start samba-bgqd as soon as possible
       via  3b5b80e9960 s3:printing: Initialize the printcap cache as soon as the bgqd starts
      from  56f5ea68300 gpo: Move Group Policy code below gp directory

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit ac16351ff5a0c5b46f461c26516b85e8483bba83
Author: Andreas Schneider <asn at samba.org>
Date:   Tue May 31 08:35:00 2022 +0200

    s3:printing: Start samba-bgqd as soon as possible
    
    We need some time to fill the printcap cache.
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15081
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Jeremy Allison <jra at samba.org>
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Tue May 31 21:51:07 UTC 2022 on sn-devel-184

commit 3b5b80e99603e4c1d4d1080ed45bd75116a9fa8e
Author: Andreas Schneider <asn at samba.org>
Date:   Mon May 30 17:22:21 2022 +0200

    s3:printing: Initialize the printcap cache as soon as the bgqd starts
    
    As soon as the background daemon starts, we need to initialize the
    printcap cache so that rpcd-spoolssd can serve printers.
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15081
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Jeremy Allison <jra at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 source3/printing/queue_process.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/printing/queue_process.c b/source3/printing/queue_process.c
index 3b0ef55c3cc..6613e8f9f55 100644
--- a/source3/printing/queue_process.c
+++ b/source3/printing/queue_process.c
@@ -319,6 +319,9 @@ struct bq_state *register_printing_bq_handlers(
 		goto fail_free_handlers;
 	}
 
+	/* Initialize the printcap cache as soon as the daemon starts. */
+	pcap_cache_reload(state->ev, state->msg, reload_pcap_change_notify);
+
 	ok = printing_subsystem_queue_tasks(state);
 	if (!ok) {
 		goto fail_free_handlers;
@@ -420,16 +423,16 @@ bool printing_subsystem_init(struct tevent_context *ev_ctx,
 {
 	pid_t pid = -1;
 
-	if (!print_backend_init(msg_ctx)) {
-		return false;
-	}
-
 	pid = start_background_queue(NULL, NULL, NULL);
 	if (pid == -1) {
 		return false;
 	}
 	background_lpq_updater_pid = pid;
 
+	if (!print_backend_init(msg_ctx)) {
+		return false;
+	}
+
 	return true;
 }
 


-- 
Samba Shared Repository



More information about the samba-cvs mailing list