From: Howard Chu Date: Fri, 7 Dec 2001 06:48:12 +0000 (+0000) Subject: Missed a spot where root DN_SUBTREE index was still getting written. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~725 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=efa14463ec0c56ca26a00ecf16d517bc76691141;p=openldap Missed a spot where root DN_SUBTREE index was still getting written. --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 4812dd7ad3..1021446c93 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -73,6 +73,8 @@ bdb_dn2id_add( int i; ((char *)key.data)[0] = DN_SUBTREE_PREFIX; for( i=0; subtree[i] != NULL; i++ ) { + if (be_issuffix(be, subtree[i])) + continue; key.size = strlen( subtree[i] ) + 2; AC_MEMCPY( &((char *)key.data)[1], subtree[i], key.size - 1 );