<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dovecot.git/src/replication/replicator/replicator-queue.h, branch master</title>
<subtitle>dovecot</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/atom/src/replication/replicator/replicator-queue.h?h=master</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/atom/src/replication/replicator/replicator-queue.h?h=master'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/'/>
<updated>2022-11-02T13:53:17Z</updated>
<entry>
<title>replicator: Add replicator_queue_count() and replicator_queue_peek()</title>
<updated>2022-11-02T13:53:17Z</updated>
<author>
<name>Timo Sirainen</name>
<email>timo.sirainen@open-xchange.com</email>
</author>
<published>2022-10-28T14:57:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/commit/?id=95ec1043e086624f4600222b278e9deafa731628'/>
<id>urn:sha1:95ec1043e086624f4600222b278e9deafa731628</id>
<content type='text'>
These will be useful for the following unit test.
</content>
</entry>
<entry>
<title>replicator: Make sure to prevent request starvation</title>
<updated>2022-11-02T13:52:54Z</updated>
<author>
<name>Timo Sirainen</name>
<email>timo.sirainen@open-xchange.com</email>
</author>
<published>2022-10-25T10:27:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/commit/?id=390e5a4c3d0879f76e6bee8f0f978897158f5b7e'/>
<id>urn:sha1:390e5a4c3d0879f76e6bee8f0f978897158f5b7e</id>
<content type='text'>
This synchronizes how priority queue is ordered vs what
replicator_queue_want_sync_now() returns. The mismatch might have caused
request starvation in some situations because they behaved differently.

Also this change makes sure that higher priority requests don't infinitely
block lower priority requests. Instead, they get a temporary boost time
(hardcoded 15-45 minutes). Afterwards lower priority requests are started
to be handled as well.
</content>
</entry>
<entry>
<title>replicator: Don't update user's last_update if priority doesn't change</title>
<updated>2022-11-02T13:52:16Z</updated>
<author>
<name>Timo Sirainen</name>
<email>timo.sirainen@open-xchange.com</email>
</author>
<published>2022-10-25T10:11:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/commit/?id=97bf10e1da7966f46ff1ce5e7fc878bb5983e8ee'/>
<id>urn:sha1:97bf10e1da7966f46ff1ce5e7fc878bb5983e8ee</id>
<content type='text'>
This didn't actually matter, since it was only used to check if importing
should update an existing user. However, importing is only run at startup
when all users have last_update=0 anyway.

The following changes bring new use cases for last_update.
</content>
</entry>
<entry>
<title>replicator: Change replicator_queue_add_sync_callback() to take user struct</title>
<updated>2022-11-02T13:52:01Z</updated>
<author>
<name>Timo Sirainen</name>
<email>timo.sirainen@open-xchange.com</email>
</author>
<published>2022-10-25T10:08:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/commit/?id=5c9f2524710dd3691bb5496855b99457c35e2699'/>
<id>urn:sha1:5c9f2524710dd3691bb5496855b99457c35e2699</id>
<content type='text'>
This is just to clean up the API to match the previous change.
</content>
</entry>
<entry>
<title>replicator: Fix user placement in replication queue</title>
<updated>2022-11-02T13:50:15Z</updated>
<author>
<name>Timo Sirainen</name>
<email>timo.sirainen@open-xchange.com</email>
</author>
<published>2022-10-25T09:49:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/commit/?id=278d4a08f24abb03e88b6b85ccd946b6dd7ba738'/>
<id>urn:sha1:278d4a08f24abb03e88b6b85ccd946b6dd7ba738</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>replicator: Add refcounting to user</title>
<updated>2017-11-27T16:46:43Z</updated>
<author>
<name>Timo Sirainen</name>
<email>timo.sirainen@dovecot.fi</email>
</author>
<published>2017-11-27T15:42:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/commit/?id=9b2129d5bdda49de45bc2f1e6160b2de338e0976'/>
<id>urn:sha1:9b2129d5bdda49de45bc2f1e6160b2de338e0976</id>
<content type='text'>
</content>
</entry>
<entry>
<title>global: unsigned int:1 -&gt; bool:1</title>
<updated>2016-06-06T12:37:02Z</updated>
<author>
<name>Timo Sirainen</name>
<email>timo.sirainen@dovecot.fi</email>
</author>
<published>2016-06-05T11:37:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/commit/?id=0dffa25d211be541ee3c953b23566a1a990789df'/>
<id>urn:sha1:0dffa25d211be541ee3c953b23566a1a990789df</id>
<content type='text'>
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch]
</content>
</entry>
<entry>
<title>replicator: Remember last successful sync and show it in "doveadm replicator status"</title>
<updated>2015-01-30T01:12:37Z</updated>
<author>
<name>Timo Sirainen</name>
<email>tss@iki.fi</email>
</author>
<published>2015-01-30T01:12:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/commit/?id=69c92cbe74dceb292f3de381edd39958ece148eb'/>
<id>urn:sha1:69c92cbe74dceb292f3de381edd39958ece148eb</id>
<content type='text'>
Patch by Matthew Via / Rackspace
</content>
</entry>
<entry>
<title>doveadm replicator add &lt;user mask&gt; command added.</title>
<updated>2014-04-28T15:34:27Z</updated>
<author>
<name>Timo Sirainen</name>
<email>tss@iki.fi</email>
</author>
<published>2014-04-28T15:34:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/commit/?id=f59c16625dc8fb1b734fddbba58012ec42cf945d'/>
<id>urn:sha1:f59c16625dc8fb1b734fddbba58012ec42cf945d</id>
<content type='text'>
This allows quickly adding users from userdb that don't exist in replicator.
For example "doveadm replicator add '*'" adds all the new users from userdb.

This isn't really necessary though. Users will be automatically added as
soon as their mailboxes change in some way and replicator gets notified
about them.
</content>
</entry>
<entry>
<title>doveadm replicator replicate: Added -f parameter to force a full sync for user.</title>
<updated>2014-04-23T17:55:04Z</updated>
<author>
<name>Timo Sirainen</name>
<email>tss@iki.fi</email>
</author>
<published>2014-04-23T17:55:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/dovecot.git/commit/?id=f57e4c0f2824b93d09d7634974a7e2a47cb8ee0e'/>
<id>urn:sha1:f57e4c0f2824b93d09d7634974a7e2a47cb8ee0e</id>
<content type='text'>
</content>
</entry>
</feed>
