dovecot-2.2: doveadm fs delete -R: Fixed hang when some of the d...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 10 16:52:57 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/3db134293be8
changeset: 18836:3db134293be8
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 10 19:50:29 2015 +0300
description:
doveadm fs delete -R: Fixed hang when some of the deletions failed.

diffstat:

 src/doveadm/doveadm-fs.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 539322434f9b -r 3db134293be8 src/doveadm/doveadm-fs.c
--- a/src/doveadm/doveadm-fs.c	Wed Jun 10 16:18:10 2015 +0300
+++ b/src/doveadm/doveadm-fs.c	Wed Jun 10 19:50:29 2015 +0300
@@ -329,7 +329,7 @@
 			goto retry;
 		}
 	} T_END;
-	while (doveadm_exit_code == 0 && cmd_fs_delete_ctx_run(&ctx) != 0) {
+	while (doveadm_exit_code == 0 && cmd_fs_delete_ctx_run(&ctx) > 0) {
 		if (fs_wait_async(fs) < 0) {
 			i_error("fs_wait_async() failed: %s", fs_last_error(fs));
 			doveadm_exit_code = EX_TEMPFAIL;


More information about the dovecot-cvs mailing list