]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Add clarifying comment about mailbox_log_record.maibox_guid contents
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 1 Mar 2022 13:36:55 +0000 (08:36 -0500)
committerMarkus Valentin <markus.valentin@open-xchange.com>
Mon, 21 Mar 2022 09:06:53 +0000 (10:06 +0100)
src/doveadm/dsync/dsync-mailbox-tree-fill.c

index 7954be80a3f881e505867de92ab555c3a4761313..c523e6bdc52dc5d0a1dfc21b83ee3e79a5894021 100644 (file)
@@ -159,6 +159,8 @@ dsync_mailbox_tree_add_change_timestamps(struct dsync_mailbox_tree *tree,
 
        iter = mailbox_log_iter_init(log);
        while ((rec = mailbox_log_iter_next(iter)) != NULL) {
+               /* For DELETE_MAILBOX the record_guid is the mailbox GUID.
+                  Otherwise it's 128bit SHA1 of the mailbox vname. */
                node = rec->type == MAILBOX_LOG_RECORD_DELETE_MAILBOX ? NULL :
                        dsync_mailbox_tree_find_sha(tree, ns, rec->mailbox_guid);