dovecot-1.1: imap: When multiple commands are pipelined, try har...
dovecot at dovecot.org
dovecot at dovecot.org
Fri May 15 00:19:48 EEST 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/78ab57f321c8
changeset: 8270:78ab57f321c8
user: Timo Sirainen <tss at iki.fi>
date: Thu May 14 17:19:40 2009 -0400
description:
imap: When multiple commands are pipelined, try harder to combine their mailbox syncing together.
diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
src/imap/client.c | 6 ++++--
diffs (23 lines):
diff -r 35a3009444bf -r 78ab57f321c8 src/imap/client.c
--- a/src/imap/client.c Wed May 13 14:36:30 2009 -0400
+++ b/src/imap/client.c Thu May 14 17:19:40 2009 -0400
@@ -363,7 +363,8 @@ client_command_find_with_flags(struct cl
cmd = new_cmd->client->command_queue;
for (; cmd != NULL; cmd = cmd->next) {
- if (cmd != new_cmd && (cmd->cmd_flags & flags) != 0)
+ if (cmd->state < CLIENT_COMMAND_STATE_WAIT_SYNC &&
+ cmd != new_cmd && (cmd->cmd_flags & flags) != 0)
return cmd;
}
return NULL;
@@ -695,7 +696,8 @@ static bool client_handle_input(struct c
if (!handled_commands)
return FALSE;
- ret = cmd_sync_delayed(client);
+ ret = client->input_lock != NULL ? TRUE :
+ cmd_sync_delayed(client);
if (ret)
client_continue_pending_input(&client);
return TRUE;
More information about the dovecot-cvs
mailing list