changeset 5274:7641e625fbd5 HEAD

When moving index file to memory, change the filename to be "(in-memory index)".
author Timo Sirainen <tss@iki.fi>
date Sat, 10 Mar 2007 21:30:26 +0200
parents 9cdfd66cf5cc
children 49efad884ed1
files src/lib-index/mail-index.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index.c	Sat Mar 10 21:29:33 2007 +0200
+++ b/src/lib-index/mail-index.c	Sat Mar 10 21:30:26 2007 +0200
@@ -1901,6 +1901,9 @@
 	/* set the index as being into memory */
 	i_free_and_null(index->dir);
 
+	i_free(index->filepath);
+	index->filepath = i_strdup("(in-memory index)");
+
 	if (index->map == NULL) {
 		/* index was never even opened. just mark it as being in
 		   memory and let the caller re-open the index. */