Author: rhafer Date: Wed Sep 3 14:00:10 2008 New Revision: 50611 URL: http://svn.opensuse.org/viewcvs/yast?rev=50611&view=rev Log: Initialize EntryIndex for new Schema objects Modified: trunk/ldap-server/src/agent/SlapdConfigAgent.cc Modified: trunk/ldap-server/src/agent/SlapdConfigAgent.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap-server/src/agent/SlapdConfigAgent.cc?rev=50611&r1=50610&r2=50611&view=diff ============================================================================== --- trunk/ldap-server/src/agent/SlapdConfigAgent.cc (original) +++ trunk/ldap-server/src/agent/SlapdConfigAgent.cc Wed Sep 3 14:00:10 2008 @@ -1325,7 +1325,9 @@ LDAPEntry entry, oldEntry; entry = ldif.getEntryRecord(); y2milestone("adding <%s> to SchemaList", entry.getDN().c_str() ); - schema.push_back( boost::shared_ptr<OlcSchemaConfig>(new OlcSchemaConfig(oldEntry, entry)) ); + boost::shared_ptr<OlcSchemaConfig> schemaCfg(new OlcSchemaConfig(oldEntry, entry)); + schemaCfg->setIndex( schema.size()-1, true ); + schema.push_back( schemaCfg ); } return YCPBoolean(true); } catch ( std::runtime_error e ) { @@ -1411,7 +1413,9 @@ return YCPBoolean(false); } } - schema.push_back( boost::shared_ptr<OlcSchemaConfig>(new OlcSchemaConfig(oldEntry, entry)) ); + boost::shared_ptr<OlcSchemaConfig> schemaCfg(new OlcSchemaConfig(oldEntry, entry)); + schemaCfg->setIndex( schema.size()-1, true ); + schema.push_back( schemaCfg ); //lastError->add( YCPString("summary"), // YCPString("Error while parsing Schema file") ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org