changeset 300:a101127403a7 HEAD

keep exclusive lock while rewriting.
author Timo Sirainen <tss@iki.fi>
date Mon, 23 Sep 2002 14:48:29 +0300
parents 696139d3b8f6
children 1d4d92c2e8c9
files src/lib-index/mbox/mbox-rewrite.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mbox/mbox-rewrite.c	Mon Sep 23 14:47:32 2002 +0300
+++ b/src/lib-index/mbox/mbox-rewrite.c	Mon Sep 23 14:48:29 2002 +0300
@@ -296,7 +296,7 @@
 		return FALSE;
 	}
 
-	if (!mbox_lock(index, index->mbox_path, in_fd, FALSE)) {
+	if (!mbox_lock(index, index->mbox_path, in_fd, TRUE)) {
 		if (close(in_fd) < 0)
 			mbox_set_syscall_error(index, "close()");
 		if (close(out_fd) < 0)