make the max_connections code less horrendously inefficient
authorAndrew Tridgell <tridge@samba.org>
Tue, 15 May 2001 00:53:15 +0000 (00:53 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 15 May 2001 00:53:15 +0000 (00:53 +0000)
commit8410ef028a5eefb257346b6023a0e96c3cca1012
treec3385a66d02bc391654e3a63f6f8321a2671924c
parentbc51512aadc705cbe5c4d666b7d45271e60d3f00
make the max_connections code less horrendously inefficient

- it didn't honour the clear flag
- it locked the database (not necessary)

the previous code would do 10^6 kill() operations for 1000 people
logging in - and all with the database locked. Not very scalable.

Still haven't added the counter, that would make it really efficient
(This used to be commit 6bdbeb4a32e52fb05328dcf38dbb90780e1761ef)
source3/smbd/connection.c