CVS update: samba/source/rpc_server

jerry at samba.org jerry at samba.org
Sat Feb 16 05:48:00 EST 2002


Date:	Fri Feb 15 10:47:59 2002
Author:	jerry

Update of /data/cvs/samba/source/rpc_server
In directory va:/tmp/cvs-serv14070/rpc_server

Modified Files:
      Tag: APPLIANCE_HEAD
	srv_spoolss_nt.c 
Log Message:
Fairly significant change to OpenPrinterEx().  The original printing
code allowed a printer to have a name that was different from its 
sharename.  This meant that we have to iterate over all of the 
printer services in smb.conf and make a get_a_printer() call
to get the actual printername.  

The current code never allows this so I replaced the loop
to verify the printername in the open request against 
lp_servicename(snum).  get_a_printer() is one of those
expensive functions that we should avoid when we can.

The main servers that will experience a speed up with this
change are those with a moderate or large number of printers
defined (possible even as few as 30!).

This fix relates to CR 362 and 414.
 



jerry



Revisions:
srv_spoolss_nt.c		1.95.2.117 => 1.95.2.118
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_server/srv_spoolss_nt.c?r1=1.95.2.117&r2=1.95.2.118




More information about the samba-cvs mailing list