From: Timo Sirainen Date: Tue, 28 Sep 2021 17:45:47 +0000 (+0300) Subject: lib-index: mail_cache_lookup_iter_next() - Add a warning comment about re-reading... X-Git-Tag: 2.3.18~208 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a016ac6a3e6c6fa9e3f94d993228f80229e24c01;p=thirdparty%2Fdovecot%2Fcore.git lib-index: mail_cache_lookup_iter_next() - Add a warning comment about re-reading fields --- diff --git a/src/lib-index/mail-cache-private.h b/src/lib-index/mail-cache-private.h index 156a1a53b7..4871c9bbb8 100644 --- a/src/lib-index/mail-cache-private.h +++ b/src/lib-index/mail-cache-private.h @@ -362,7 +362,8 @@ bool mail_cache_track_loops(struct mail_cache_loop_track *loop_track, /* Iterate through a message's cached fields. */ void mail_cache_lookup_iter_init(struct mail_cache_view *view, uint32_t seq, struct mail_cache_lookup_iterate_ctx *ctx_r); -/* Returns 1 if field was returned, 0 if end of fields, or -1 if error */ +/* Returns 1 if field was returned, 0 if end of fields, or -1 if error. + Note that this may trigger re-reading and reallocating cache fields. */ int mail_cache_lookup_iter_next(struct mail_cache_lookup_iterate_ctx *ctx, struct mail_cache_iterate_field *field_r); const struct mail_cache_record *