]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: DIRECTOR-LIST - Add "ring " prefix to self's status
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 26 Nov 2017 10:20:26 +0000 (12:20 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 26 Nov 2017 11:07:48 +0000 (13:07 +0200)
This is to make it a bit easier to understand the difference between a
connection's "handshaking" state vs. "ring handshaking" state.

src/director/doveadm-connection.c

index cc660de20d4ff29db50aad27710c673ac73b2a45..803af025749ce901513f5945e2708392a80cdf52 100644 (file)
@@ -173,11 +173,11 @@ doveadm_director_host_append_status(const struct director_host *host,
 static void doveadm_director_append_status(struct director *dir, string_t *str)
 {
        if (!dir->ring_handshaked)
-               str_append(str, "handshaking");
+               str_append(str, "ring handshaking");
        else if (dir->ring_synced)
-               str_append(str, "synced");
+               str_append(str, "ring synced");
        else {
-               str_printfa(str, "syncing - last sync %d secs ago",
+               str_printfa(str, "ring syncing - last sync %d secs ago",
                            (int)(ioloop_time - dir->ring_last_sync_time));
        }
        str_printfa(str, "\t%u", dir->last_sync_msecs);