Mercurial > dovecot > core-2.2
diff src/director/director-connection.c @ 14431:084064444f89
director: Don't try to send the new SYNC parameter to old director versions.
This should allow adding new directors to an old director ring without
anything breaking. Once all directors have upgraded they start using the new
features.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 09 Apr 2012 07:52:25 +0300 |
parents | b43ae3805f5f |
children | 366b9e5fc85c |
line wrap: on
line diff
--- a/src/director/director-connection.c Wed Apr 04 11:08:32 2012 +0300 +++ b/src/director/director-connection.c Mon Apr 09 07:52:25 2012 +0300 @@ -82,6 +82,7 @@ struct director *dir; char *name; time_t created; + unsigned int minor_version; /* for incoming connections the director host isn't known until ME-line is received */ @@ -890,6 +891,7 @@ DIRECTOR_VERSION_MAJOR); return -1; } + conn->minor_version = atoi(args[2]); conn->version_received = TRUE; return 1; } @@ -1528,6 +1530,12 @@ return conn->in; } +unsigned int +director_connection_get_minor_version(struct director_connection *conn) +{ + return conn->minor_version; +} + void director_connection_cork(struct director_connection *conn) { o_stream_cork(conn->output);