From 3d3ba13f928459a7780790408b0196693e335a70 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 25 Jan 2006 01:47:48 +0000 Subject: [PATCH] ITS#4369 add log messages for delta syncrepl ops --- servers/slapd/syncrepl.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 7a9272759b..79643c6ee9 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1359,11 +1359,17 @@ syncrepl_message_to_op( text, 0, 0 ); } else { rc = op->o_bd->be_add( op, &rs ); + Debug( LDAP_DEBUG_SYNC, + "syncrepl_message_to_op: be_add %s (%d)\n", + op->o_req_dn.bv_val, rc, 0 ); } be_entry_release_w( op, op->ora_e ); } else { op->orm_modlist = modlist; rc = op->o_bd->be_modify( op, &rs ); + Debug( LDAP_DEBUG_SYNC, + "syncrepl_message_to_op: be_modify %s (%d)\n", + op->o_req_dn.bv_val, rc, 0 ); } break; case LDAP_REQ_MODRDN: @@ -1387,9 +1393,15 @@ syncrepl_message_to_op( goto done; rc = op->o_bd->be_modrdn( op, &rs ); slap_mods_free( op->orr_modlist, 1 ); + Debug( LDAP_DEBUG_SYNC, + "syncrepl_message_to_op: be_modrdn %s (%d)\n", + op->o_req_dn.bv_val, rc, 0 ); break; case LDAP_REQ_DELETE: rc = op->o_bd->be_delete( op, &rs ); + Debug( LDAP_DEBUG_SYNC, + "syncrepl_message_to_op: be_delete %s (%d)\n", + op->o_req_dn.bv_val, rc, 0 ); break; } done: -- 2.39.5