dovecot-2.2: dsync: After reading remote hostname, use it for th...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Aug 6 14:46:50 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/7057d4ad8891
changeset: 16665:7057d4ad8891
user: Timo Sirainen <tss at iki.fi>
date: Tue Aug 06 14:46:36 2013 +0300
description:
dsync: After reading remote hostname, use it for the log messages instead of IP.
diffstat:
src/doveadm/dsync/dsync-ibc-stream.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 5a3821097f3c -r 7057d4ad8891 src/doveadm/dsync/dsync-ibc-stream.c
--- a/src/doveadm/dsync/dsync-ibc-stream.c Tue Aug 06 14:36:25 2013 +0300
+++ b/src/doveadm/dsync/dsync-ibc-stream.c Tue Aug 06 14:46:36 2013 +0300
@@ -677,6 +677,11 @@
value = dsync_deserializer_decode_get(decoder, "hostname");
set->hostname = p_strdup(pool, value);
+ /* now that we know the remote's hostname, use it for the
+ stream's name */
+ i_free(ibc->name);
+ ibc->name = i_strdup(set->hostname);
+
if (dsync_deserializer_decode_try(decoder, "sync_ns_prefix", &value))
set->sync_ns_prefix = p_strdup(pool, value);
if (dsync_deserializer_decode_try(decoder, "sync_box", &value))
More information about the dovecot-cvs
mailing list