]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Update comments for mail_cache_decision_*()
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 25 Jan 2018 10:35:35 +0000 (12:35 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 5 Feb 2018 11:07:08 +0000 (13:07 +0200)
src/lib-index/mail-cache-private.h

index 8529f72db508012257cdf63f078359a319074125..38be5559ab1ce2a7cf6be43f6eae0eae2a47e0fa 100644 (file)
@@ -250,9 +250,14 @@ void mail_cache_file_close(struct mail_cache *cache);
 int mail_cache_reopen(struct mail_cache *cache);
 
 /* Notify the decision handling code that field was looked up for seq.
-   This should be called even for fields that aren't currently in cache file */
+   This should be called even for fields that aren't currently in cache file.
+   This is used to update caching decisions for fields that already exist
+   in the cache file. */
 void mail_cache_decision_state_update(struct mail_cache_view *view,
                                      uint32_t seq, unsigned int field);
+/* Notify the decision handling code when field is committed to cache.
+   If this is the first time the field is added to cache, its caching decision
+   is updated to TEMP. */
 void mail_cache_decision_add(struct mail_cache_view *view, uint32_t seq,
                             unsigned int field);