mirror of
https://github.com/samba-team/samba.git
synced 2025-02-08 05:57:51 +03:00
2c1c567ee1
Counting on the client list being sorted by last access time, the list scan for removing timed-out clients is shortened - once the list is scanned oldest to newest, and once a non-timed-out client is found, the scan can stop. Also, finding the oldest idle client for removing an idle client is simplified - oldest idle client is last idle client. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11397 Signed-off-by: Uri Simchoni <urisimchoni@gmail.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jul 16 01:45:20 CEST 2015 on sn-devel-104