dovecot-2.2: dict redis: Fixed dict_lookup() to skip all previou...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Aug 21 10:06:38 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/bf727e0b721a
changeset: 14941:bf727e0b721a
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 e3f8be1bd93a -r bf727e0b721a src/lib-dict/dict-redis.c
--- a/src/lib-dict/dict-redis.c Mon Aug 20 16:13:49 2012 +0300
+++ b/src/lib-dict/dict-redis.c Tue Aug 21 10:02:44 2012 +0300
@@ -439,7 +439,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