]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
dsync: Determine better when rename-algorithm might have gotten stuck.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 22 Apr 2016 13:28:56 +0000 (16:28 +0300)
committerGitLab <gitlab@git.dovecot.net>
Fri, 22 Apr 2016 22:43:27 +0000 (01:43 +0300)
commite51f8aa02279cd594be13fb6a469cee89d250b45
tree3b674ce1e0918a00cdc6a8cc59c6eca50bd46ad1
parent34b0579f1542471947564bf56cfcf51946f57313
dsync: Determine better when rename-algorithm might have gotten stuck.

A hardcoded value of 100 isn't necessarily enough if there are a lot of
mailboxes with a lot of renames. Base the max count on the total number
of mailboxes on both local and remote. And just in case multiple it by 3.
Probably smaller number would be fine too.
src/doveadm/dsync/dsync-mailbox-tree-sync.c