dovecot-2.1: dict redis: Fixed dict_lookup() to skip all previou...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Aug 26 19:17:48 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/00f940201806
changeset: 14685:00f940201806
user: Timo Sirainen <tss at iki.fi>
date: Tue Aug 21 10:02:44 2012 +0300
description:
dict redis: Fixed dict_lookup() to skip all previous pending replies.
diffstat:
src/lib-dict/dict-redis.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 1bc8f7b823e7 -r 00f940201806 src/lib-dict/dict-redis.c
--- a/src/lib-dict/dict-redis.c Fri Aug 24 15:12:32 2012 +0300
+++ b/src/lib-dict/dict-redis.c Tue Aug 21 10:02:44 2012 +0300
@@ -441,7 +441,9 @@
str_truncate(dict->conn.last_reply, 0);
redis_input_state_add(dict, REDIS_INPUT_STATE_GET);
- io_loop_run(dict->ioloop);
+ do {
+ io_loop_run(dict->ioloop);
+ } while (array_count(&dict->input_states) > 0);
}
timeout_remove(&to);
}
More information about the dovecot-cvs
mailing list