changeset 5770:213b597e57de HEAD

If maildirsize file is being rewritten while we're trying to do that, recalculate it later instead of failing with "Unknown quota error".
author Timo Sirainen <tss@iki.fi>
date Tue, 19 Jun 2007 14:25:30 +0300
parents 901a9ba8cff7
children 433ae8a32506
files src/plugins/quota/quota-maildir.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/quota/quota-maildir.c	Mon Jun 18 01:34:17 2007 +0300
+++ b/src/plugins/quota/quota-maildir.c	Tue Jun 19 14:25:30 2007 +0300
@@ -222,7 +222,7 @@
 	if (fd == -1) {
 		if (errno == EAGAIN) {
 			/* someone's just in the middle of updating it */
-			return -1;
+			return 1;
 		}
 
 		i_error("file_dotlock_open(%s) failed: %m", path);