From: Timo Sirainen Date: Tue, 1 Mar 2022 13:36:55 +0000 (-0500) Subject: dsync: Add clarifying comment about mailbox_log_record.maibox_guid contents X-Git-Tag: 2.3.19~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60ae30dd9e0fb97fe7af16ff9dd61478e09d66e4;p=thirdparty%2Fdovecot%2Fcore.git dsync: Add clarifying comment about mailbox_log_record.maibox_guid contents --- diff --git a/src/doveadm/dsync/dsync-mailbox-tree-fill.c b/src/doveadm/dsync/dsync-mailbox-tree-fill.c index 7954be80a3..c523e6bdc5 100644 --- a/src/doveadm/dsync/dsync-mailbox-tree-fill.c +++ b/src/doveadm/dsync/dsync-mailbox-tree-fill.c @@ -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);