dovecot-1.2: dict proxy client: Don't hang when doing an async c...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jan 26 02:40:41 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/a68ed51b681d
changeset: 8683:a68ed51b681d
user: Timo Sirainen <tss at iki.fi>
date: Sun Jan 25 19:39:41 2009 -0500
description:
dict proxy client: Don't hang when doing an async commit.
diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
src/lib-dict/dict-client.c | 6 +++---
diffs (17 lines):
diff -r 49ad944c5741 -r a68ed51b681d src/lib-dict/dict-client.c
--- a/src/lib-dict/dict-client.c Sun Jan 25 18:39:07 2009 -0500
+++ b/src/lib-dict/dict-client.c Sun Jan 25 19:39:41 2009 -0500
@@ -473,10 +473,10 @@ static int client_dict_transaction_commi
ctx->id);
if (client_dict_send_transaction_query(ctx, query) < 0)
ret = -1;
- else if (ret < 0) {
- /* rollback sent, it has no reply */
+ else if (ret < 0 || async) {
+ /* no reply */
} else {
- /* read reply */
+ /* sync commit, read reply */
line = client_dict_read_line(dict);
if (line == NULL || *line != DICT_PROTOCOL_REPLY_OK)
ret = -1;
More information about the dovecot-cvs
mailing list