changeset 22561:06361c8455a7

director: Improve debugging: Log ring desync when there is no right connection
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 14 Sep 2017 18:13:33 +0300
parents 9a300e778b20
children 3af1ba6b5248
files src/director/director.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/director/director.c	Thu Sep 14 17:26:39 2017 +0300
+++ b/src/director/director.c	Thu Sep 14 18:13:33 2017 +0300
@@ -431,6 +431,8 @@
 	if (dir->right == NULL) {
 		i_assert(!dir->ring_synced ||
 			 (dir->left == NULL && dir->right == NULL));
+		dir_debug("Ring is desynced (seq=%u, no right connection)",
+			  dir->sync_seq);
 		return;
 	}