diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-24 11:09:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:47 -0500 |
commit | ff0ac5b0e7f9163760b2863f48389e4943ac2154 (patch) | |
tree | 1a564b6a60c5979b97507e528ebf6db412f23e6e /source3/printing | |
parent | c3c7e1b4230e086ec91fe51b96509ef90980358b (diff) | |
download | samba-ff0ac5b0e7f9163760b2863f48389e4943ac2154.tar.gz samba-ff0ac5b0e7f9163760b2863f48389e4943ac2154.tar.bz2 samba-ff0ac5b0e7f9163760b2863f48389e4943ac2154.zip |
r23112: Trim down the message.c API slightly: The messages_pending_for_pid is now
replaced by MSG_FLAG_LOWPRIORITY or'ed into the msg_type. To enable this,
changed the msg_type definitions to hexadecimal.
This way we could theoretically add the MSG_FLAG_NODUPLICATES again, but I
would rather not do this, because that one is racy and can't be guaranteed at
all.
(This used to be commit 3f5eb8a9600839a9f9c44c553f0bda6df22b30b0)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/notify.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c index 23cdcc3361..3b22719804 100644 --- a/source3/printing/notify.c +++ b/source3/printing/notify.c @@ -183,16 +183,9 @@ 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( - 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 )); - continue; - } messaging_send_buf(msg_ctx, pid_to_procid(pid_list[i]), - MSG_PRINTER_NOTIFY2, + MSG_PRINTER_NOTIFY2 | MSG_FLAG_LOWPRIORITY, (uint8 *)buf, offset); if ((timeout != 0) && timeval_expired(&end_time)) { |