On 11.4.2013, at 13.07, Thomas Hummel hummel@pasteur.fr wrote:
It doesn't matter if new connections arrive during the final dsync, because they are using the new format already. dsync merges changes, it doesn't destroy any changes.
It doesn't destroy changes but the user may see an incorrect state for a small amount of time, doesn't he ?
For a small amount of time, yes.
For instance (using dsync to change Maildir location from file1 to filer2) :
. Maildir in source : message tagged as New . initial dsync . user read the message in the source, message is now tagges as Read . switch user to Maildir in destination . kick user . user reconnects and sees, in destination, the message he just read tagged as New as long as the final dsync is not finished
?
Which is probably a few seconds, so I don't see this as much of a problem.