Skip to content

Commit

Permalink
director: Ignore doveadm user move if host is already the same.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jan 24, 2017
1 parent 8f4bd3b commit e6b3e47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/director/doveadm-connection.c
Expand Up @@ -662,8 +662,10 @@ doveadm_cmd_user_move(struct doveadm_connection *conn, const char *const *args)
return 1;
}

director_move_user(conn->dir, conn->dir->self_host, NULL,
username_hash, host);
if (user == NULL || user->host != host) {
director_move_user(conn->dir, conn->dir->self_host, NULL,
username_hash, host);
}
o_stream_nsend(conn->output, "OK\n", 3);
return 1;
}
Expand Down

0 comments on commit e6b3e47

Please sign in to comment.