From fd5ad3ef399dc281e78b06a36162a58a95518c34 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Tue, 12 Sep 2017 10:09:44 -0700 Subject: [PATCH] ITS#8527 - Add additional debug logging on consumer/provider state when the consumer has a newer cookie than the provider --- servers/slapd/overlays/syncprov.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 18c2c6cf3c..72c9064ba3 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -2656,6 +2656,10 @@ syncprov_op_search( Operation *op, SlapReply *rs ) /* our state is older, complain to consumer */ rs->sr_err = LDAP_UNWILLING_TO_PERFORM; rs->sr_text = "consumer state is newer than provider!"; + Log4( LDAP_DEBUG_SYNC, ldap_syslog_level, + "consumer %d state %s is newer than provider %d state %s\n", + sids[i], srs->sr_state.ctxcsn[i].bv_val, sids[j], /* == slap_serverID */ + ctxcsn[j].bv_val); bailout: if ( sop ) { syncops **sp = &si->si_ops; -- 2.39.5