With hundreds of printers in /etc/printcap and load printers = yes, Samba 3.5 will spend significant amounts of time in the loop in set_printer_hnd_name(). Not sure the patch to follow should make it into the next 3.5 release, but I would like to make it visible here. Volker
Created attachment 5941 [details] Patch for 3.5 This patch has successfully been tested by a customer of mine. Volker
Created attachment 5942 [details] Patch for 3.5 The customer asked to be mentioned. Code is the same, just the commit msg changed. Volker
Looks good for 3.5.x. Jeremy.
Pushed to v3-5-test. Closing out bug report. Thanks!
The patch is great, but not complete. As the cache entry isn't invalidated or deleted if a printer is updated a printer rename doesn't work (SetPrinter, GetPrinter). The samba3.posix_s3.rpc.spoolss.printer rename test is currently failing. To be complete the cache entry should be deleted if the printers is deleted. Volker, could you please complete the patch?
Created attachment 5949 [details] Patch Is that what you have in mind? I can't test it right now, "make selftest" for some reason does not work for me, I'm still on the make oldtest. Volker
Reassigning to Andreas for patch review.
The patch looks fine. It is already in master and in v3.6 as it was working correctly here.
Karolin, could you please apply or pick the patch for Samba 3.5?
Sorry, both patches do not apply to current v3-5-test branch...
Created attachment 6239 [details] Fixed patch
Created attachment 6240 [details] Fixed fixed patch
Comment on attachment 6240 [details] Fixed fixed patch looks good
Karolin, please add to 3.5