dovecot: Init header for newly created files.

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 14 06:53:01 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/f41bd3065ec8
changeset: 7158:f41bd3065ec8
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 14 06:52:18 2008 +0200
description:
Init header for newly created files.

diffstat:

1 file changed, 1 insertion(+)
src/plugins/fts-squat/squat-trie.c |    1 +

diffs (11 lines):

diff -r 0c1d5a814368 -r f41bd3065ec8 src/plugins/fts-squat/squat-trie.c
--- a/src/plugins/fts-squat/squat-trie.c	Mon Jan 14 06:44:38 2008 +0200
+++ b/src/plugins/fts-squat/squat-trie.c	Mon Jan 14 06:52:18 2008 +0200
@@ -1147,6 +1147,7 @@ static int squat_trie_map_header(struct 
 
 	if (trie->locked_file_size == 0) {
 		/* newly created file */
+		squat_trie_header_init(trie);
 		return 1;
 	}
 	i_assert(trie->fd != -1);


More information about the dovecot-cvs mailing list