]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
replicator: Fix user placement in replication queue
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 25 Oct 2022 09:49:03 +0000 (12:49 +0300)
committerMartti Rannanjärvi <martti.rannanjarvi@open-xchange.com>
Wed, 2 Nov 2022 13:50:15 +0000 (15:50 +0200)
commit278d4a08f24abb03e88b6b85ccd946b6dd7ba738
treec82fb839000e8d6ef94ab5c1f12ac86aab530ae1
parent94f620c4da4441937a4b07df36b479697368c532
replicator: Fix user placement in replication queue

Especially replicator queue importing and NOTIFY command could have
placed the user to wrong place in the queue, because they modified the
last sync timestamps afterwards.

Fixed by splitting replicator_queue_add() into get/update/add(), so all
the necessary changes can be done before replicator_queue_add() is used
to place the user into the queue.
src/replication/replicator/doveadm-connection.c
src/replication/replicator/notify-connection.c
src/replication/replicator/replicator-queue-auth.c
src/replication/replicator/replicator-queue.c
src/replication/replicator/replicator-queue.h