changeset 6656:b8f2fade7aeb HEAD

Refresh index always after committing a transaction. This is especially useful now that we don't always bother to sync the mailbox after a commit.
author Timo Sirainen <tss@iki.fi>
date Fri, 02 Nov 2007 16:33:41 +0200
parents 9ffa528c257c
children 5da6da5cea95
files src/lib-index/mail-index-transaction.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-transaction.c	Fri Nov 02 16:32:31 2007 +0200
+++ b/src/lib-index/mail-index-transaction.c	Fri Nov 02 16:33:41 2007 +0200
@@ -546,6 +546,11 @@
 						  log_file_offset_r);
 	}
 
+	if (ret == 0) {
+		/* we always want to have the latest changes in index map */
+		(void)mail_index_refresh(t->view->index);
+	}
+
 	mail_index_transaction_unref(&t);
 	return ret;
 }