svn commit: samba r6147 - in branches/SAMBA_4_0/source/lib/events: .

tridge at samba.org tridge at samba.org
Thu Mar 31 02:14:31 GMT 2005


Author: tridge
Date: 2005-03-31 02:14:31 +0000 (Thu, 31 Mar 2005)
New Revision: 6147

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6147

Log:
The maxfd was being recalculated on every event loop, which made us
less scalable. It only needs to be recalculated when we the highest fd
is destroyed.


Modified:
   branches/SAMBA_4_0/source/lib/events/events_standard.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/events/events_standard.c
===================================================================
--- branches/SAMBA_4_0/source/lib/events/events_standard.c	2005-03-31 02:12:09 UTC (rev 6146)
+++ branches/SAMBA_4_0/source/lib/events/events_standard.c	2005-03-31 02:14:31 UTC (rev 6147)
@@ -514,7 +514,6 @@
 	struct std_event_context *std_ev = talloc_get_type(ev->additional_data,
 							   struct std_event_context);
 	std_ev->exit_code = 0;
-	std_ev->maxfd = EVENT_INVALID_MAXFD;
 
 	while (std_ev->fd_events && std_ev->exit_code == 0) {
 		if (std_event_loop_once(ev) != 0) {



More information about the samba-cvs mailing list