changeset 17992:2c8d458f120f

dsync: Removed in/out state from debugging. This was initially added for debugging hangs, but those haven't existed for a long time now. Maybe we should eventually make debug categories configurable, but for now nobody wants to see these messages.
author Timo Sirainen <tss@iki.fi>
date Fri, 24 Oct 2014 03:58:35 +0300
parents 52ad54b23e24
children 3dda0b301c20
files src/doveadm/dsync/dsync-brain-mails.c src/doveadm/dsync/dsync-brain.c
diffstat 2 files changed, 0 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-brain-mails.c	Fri Oct 24 03:54:21 2014 +0300
+++ b/src/doveadm/dsync/dsync-brain-mails.c	Fri Oct 24 03:58:35 2014 +0300
@@ -315,13 +315,6 @@
 
 	i_assert(brain->box != NULL);
 
-	if (brain->debug) {
-		i_debug("brain %c: in box '%s' recv_state=%s send_state=%s",
-			brain->master_brain ? 'M' : 'S',
-			mailbox_get_vname(brain->box),
-			dsync_box_state_names[brain->box_recv_state],
-			dsync_box_state_names[brain->box_send_state]);
-	}
 	switch (brain->box_recv_state) {
 	case DSYNC_BOX_STATE_MAILBOX:
 		changed = dsync_brain_master_sync_recv_mailbox(brain);
@@ -372,12 +365,5 @@
 			break;
 		}
 	}
-	if (brain->debug) {
-		i_debug("brain %c: out box '%s' recv_state=%s send_state=%s changed=%d",
-			brain->master_brain ? 'M' : 'S',
-			brain->box == NULL ? "" : mailbox_get_vname(brain->box),
-			dsync_box_state_names[brain->box_recv_state],
-			dsync_box_state_names[brain->box_send_state], changed);
-	}
 	return changed;
 }
--- a/src/doveadm/dsync/dsync-brain.c	Fri Oct 24 03:54:21 2014 +0300
+++ b/src/doveadm/dsync/dsync-brain.c	Fri Oct 24 03:58:35 2014 +0300
@@ -539,10 +539,6 @@
 	if (brain->failed)
 		return FALSE;
 
-	if (brain->debug) {
-		i_debug("brain %c: in state=%s", brain->master_brain ? 'M' : 'S',
-			dsync_state_names[brain->state]);
-	}
 	switch (brain->state) {
 	case DSYNC_STATE_MASTER_RECV_HANDSHAKE:
 		changed = dsync_brain_master_recv_handshake(brain);
@@ -586,11 +582,6 @@
 		ret = FALSE;
 		break;
 	}
-	if (brain->debug) {
-		i_debug("brain %c: out state=%s changed=%d",
-			brain->master_brain ? 'M' : 'S',
-			dsync_state_names[brain->state], changed);
-	}
 	if (brain->verbose_proctitle) {
 		if (orig_state != brain->state ||
 		    orig_box_recv_state != brain->box_recv_state ||