]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
director: Keep users unsorted during handshake and sort them at the end
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 17 Nov 2017 11:24:59 +0000 (13:24 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 24 Nov 2017 19:45:23 +0000 (21:45 +0200)
commit94fb15fffc814d7dcecabf8d90691502311d4b88
treee70a166fe29bbd80a3a331c0579833c9c4a6b0fb
parent0e94f6c27bffd58953b3479415532bff2bc04732
director: Keep users unsorted during handshake and sort them at the end

This is simpler and sometimes more efficient than the current way of
immediately inserting the users to the correct place in the linked list.
This is especially useful if handshaking is mixed with regular USER updates,
because each switch between them required walking the linked list backwards
to find the proper insert position.

It's not a big problem if the users list is temporarily unordered. It mainly
means that some of the users won't be expired as early as they should have.
src/director/director-connection.c
src/director/user-directory.c