Mercurial > dovecot > core-2.2
changeset 22569:718e59dd23dd
director: Fix ring sync wait after DIRECTOR-REMOVE
It was sending OK twice, and the first OK was too early.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 14 Sep 2017 18:13:05 +0300 |
parents | c50f46578b86 |
children | 39b2dd549e8a |
files | src/director/doveadm-connection.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/director/doveadm-connection.c Thu Sep 14 17:59:05 2017 +0300 +++ b/src/director/doveadm-connection.c Thu Sep 14 18:13:05 2017 +0300 @@ -287,10 +287,8 @@ director_host_lookup_ip(conn->dir, &ip); if (host == NULL) o_stream_nsend_str(conn->output, "NOTFOUND\n"); - else { + else director_ring_remove(host, conn->dir->self_host); - o_stream_nsend(conn->output, "OK\n", 3); - } return DOVEADM_DIRECTOR_CMD_RET_RING_SYNC_OK; }