Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 83528 invoked from network); 27 Mar 2009 19:46:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Mar 2009 19:46:30 -0000 Received: (qmail 20655 invoked by uid 500); 27 Mar 2009 19:46:30 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 20593 invoked by uid 500); 27 Mar 2009 19:46:30 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 20584 invoked by uid 99); 27 Mar 2009 19:46:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 19:46:30 +0000 X-ASF-Spam-Status: No, hits=-1999.6 required=10.0 tests=ALL_TRUSTED,SUBJECT_FUZZY_TION X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 19:46:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 05DBA2388995; Fri, 27 Mar 2009 19:46:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r759317 - /directory/apacheds/branches/ldif-partition/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java Date: Fri, 27 Mar 2009 19:46:06 -0000 To: commits@directory.apache.org From: akarasulu@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090327194607.05DBA2388995@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: akarasulu Date: Fri Mar 27 19:46:06 2009 New Revision: 759317 URL: http://svn.apache.org/viewvc?rev=759317&view=rev Log: adding objectCLass as system index Modified: directory/apacheds/branches/ldif-partition/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java Modified: directory/apacheds/branches/ldif-partition/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java?rev=759317&r1=759316&r2=759317&view=diff ============================================================================== --- directory/apacheds/branches/ldif-partition/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java (original) +++ directory/apacheds/branches/ldif-partition/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmPartition.java Fri Mar 27 19:46:06 2009 @@ -42,6 +42,7 @@ import org.apache.directory.server.xdbm.search.impl.EvaluatorBuilder; import org.apache.directory.server.xdbm.search.impl.NoOpOptimizer; import org.apache.directory.server.schema.registries.Registries; +import org.apache.directory.shared.ldap.constants.SchemaConstants; import org.apache.directory.shared.ldap.exception.LdapAuthenticationNotSupportedException; import org.apache.directory.shared.ldap.message.ResultCodeEnum; import org.apache.directory.shared.ldap.name.LdapDN; @@ -235,6 +236,10 @@ { store.setUpdnIndex( ( Index ) index ); } + else if ( oid.equals( SchemaConstants.OBJECT_CLASS_AT_OID ) ) + { + store.addIndex( ( Index ) index ); + } else { throw new IllegalStateException( "Unrecognized system index " + oid );