Skip to content

Commit

Permalink
doveadm director ring remove: Wait ring sync before and after removal
Browse files Browse the repository at this point in the history
This helps mainly with automated tests.
  • Loading branch information
sirainen committed Oct 5, 2017
1 parent a912765 commit 28a9595
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/director/director.c
Expand Up @@ -548,6 +548,7 @@ void director_ring_remove(struct director_host *removed_host,
removed_host->port);
director_update_send_version(dir, src,
DIRECTOR_VERSION_RING_REMOVE, cmd);
director_sync(dir);
}

static void
Expand Down
2 changes: 1 addition & 1 deletion src/director/doveadm-connection.c
Expand Up @@ -291,7 +291,7 @@ doveadm_cmd_director_remove(struct doveadm_connection *conn,
director_ring_remove(host, conn->dir->self_host);
o_stream_nsend(conn->output, "OK\n", 3);
}
return DOVEADM_DIRECTOR_CMD_RET_OK;
return DOVEADM_DIRECTOR_CMD_RET_RING_SYNC_OK;
}

static enum doveadm_director_cmd_ret
Expand Down

0 comments on commit 28a9595

Please sign in to comment.