changeset 135:24c8fcb78e0e HEAD

"revert back to shared lock" actually tried to set exclusive lock again
author Timo Sirainen <tss@iki.fi>
date Tue, 03 Sep 2002 23:35:31 +0300
parents 2ec94f1bf60b
children 899ea73710fc
files src/lib-index/mail-modifylog.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-modifylog.c	Tue Sep 03 23:34:05 2002 +0300
+++ b/src/lib-index/mail-modifylog.c	Tue Sep 03 23:35:31 2002 +0300
@@ -88,7 +88,7 @@
 		return -1;
 
 	/* revert back to shared lock */
-	switch (mail_modifylog_try_lock(log, F_WRLCK)) {
+	switch (mail_modifylog_try_lock(log, F_RDLCK)) {
 	case 0:
 		/* shouldn't happen */
 		index_set_error(log->index, "fcntl(F_WRLCK -> F_RDLCK) "