From ac3f08ddbe0b484375624db0e35999a8584b57f4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 21 May 2007 22:17:13 +0000 Subject: r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'm doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker (This used to be commit eaefd00563173dfabb7716c5695ac0a2f7139bb6) --- source3/printing/notify.c | 3 ++- source3/printing/printing.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/printing') diff --git a/source3/printing/notify.c b/source3/printing/notify.c index 37ae003783..23cdcc3361 100644 --- a/source3/printing/notify.c +++ b/source3/printing/notify.c @@ -183,7 +183,8 @@ static void print_notify_send_messages_to_printer(struct messaging_context *msg_ } for (i = 0; i < num_pids; i++) { - unsigned int q_len = messages_pending_for_pid(pid_to_procid(pid_list[i])); + unsigned int q_len = messages_pending_for_pid( + msg_ctx, pid_to_procid(pid_list[i])); if (q_len > 1000) { DEBUG(5, ("print_notify_send_messages_to_printer: discarding notify to printer %s as queue length = %u\n", printer, q_len )); diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 6717f473cc..6101f9a0f5 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -1426,7 +1426,7 @@ void start_background_queue(void) /* now check for messages */ DEBUG(10,("start_background_queue: background LPQ thread got a message\n")); - message_dispatch(); + message_dispatch(smbd_messaging_context()); /* process any pending print change notify messages */ -- cgit