dovecot-2.1: redis dict: Log an error if we get disconnected une...

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 21 07:14:01 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/a97c62fdd4ad
changeset: 14773:a97c62fdd4ad
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 21 07:13:44 2012 +0300
description:
redis dict: Log an error if we get disconnected unexpectedly.

diffstat:

 src/lib-dict/dict-redis.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 99aec8d4d6c6 -r a97c62fdd4ad src/lib-dict/dict-redis.c
--- a/src/lib-dict/dict-redis.c	Thu Oct 18 06:45:39 2012 +0300
+++ b/src/lib-dict/dict-redis.c	Sun Oct 21 07:13:44 2012 +0300
@@ -241,6 +241,8 @@
 	case 0:
 		return;
 	case -1:
+		if (conn->dict->ioloop != NULL)
+			i_error("redis: Disconnected unexpectedly");
 		redis_conn_destroy(_conn);
 		return;
 	default:


More information about the dovecot-cvs mailing list