changeset 210:78df368a395b HEAD

Actually, don't bother fsyncing after each written mail, it slows down too much and the corruption can be handled later just fine.
author Timo Sirainen <tss@iki.fi>
date Tue, 10 Sep 2002 05:52:09 +0300
parents d85a6898bf39
children 9ee27ef24ab8
files src/lib-index/mail-index.c
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index.c	Tue Sep 10 05:45:24 2002 +0300
+++ b/src/lib-index/mail-index.c	Tue Sep 10 05:52:09 2002 +0300
@@ -1424,13 +1424,6 @@
 
 int mail_index_append_end(MailIndex *index, MailIndexRecord *rec)
 {
-	/* make sure everything is written before setting it's UID
-	   to mark it as non-deleted. */
-	if (!mail_index_data_sync_file(index->data))
-		return FALSE;
-	if (!mail_index_fmsync(index, index->mmap_length))
-		return FALSE;
-
 	rec->uid = index->header->next_uid++;
 
 	if (index->hash != NULL) {