From 82719d535119ed8875e6f60b9e5383583c13480e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 11 Jan 2008 04:01:37 +0000 Subject: [PATCH] ITS#5319 no special treatment for no-effect renames --- servers/slapd/back-bdb/modrdn.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index 4de5984383..bc13df5ef6 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -591,27 +591,6 @@ retry: /* transaction retry */ } } - /* Rename to exactly the same name, noop */ - if ( nei == ei && bvmatch( &e->e_name, &new_dn )) { - rs->sr_err = LDAP_SUCCESS; - if ( op->o_postread ) { - if( postread_ctrl == NULL ) { - postread_ctrl = &ctrls[num_ctrls++]; - ctrls[num_ctrls] = NULL; - } - if( slap_read_controls( op, rs, e, - &slap_post_read_bv, postread_ctrl ) ) - { - Debug( LDAP_DEBUG_TRACE, - "<=- " LDAP_XSTRING(bdb_modrdn) - ": post-read failed!\n", 0, 0, 0 ); - } - } - TXN_ABORT( ltid ); - ltid = NULL; - goto return_results; - } - /* nested transaction */ rs->sr_err = TXN_BEGIN( bdb->bi_dbenv, ltid, <2, bdb->bi_db_opflags ); rs->sr_text = NULL; -- 2.39.5