Bug 249470 - cn equality index missing by default
cn equality index missing by default
Status: CLOSED CURRENTRELEASE
Product: Red Hat Directory Server
Classification: Red Hat
Component: Database - Indexes/Searches (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Rich Megginson
Viktor Ashirov
:
Depends On:
Blocks: 240316
  Show dependency treegraph
 
Reported: 2007-07-24 16:53 EDT by Chandrasekar Kannan
Modified: 2016-05-06 10:48 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-05-06 10:48:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
diffs (3.60 KB, patch)
2007-07-24 19:54 EDT, Rich Megginson
no flags Details | Diff
cvs commit log (414 bytes, application/octet-stream)
2007-07-25 11:20 EDT, Rich Megginson
no flags Details

  None (edit)
Description Chandrasekar Kannan 2007-07-24 16:53:33 EDT
cn equality index missing by default on any instance
created with DS 8.0

-----------------------------------------------------------
for example, with DS 7.1, you would see these,

[root@neo userRoot]# pwd
/opt/redhat-ds/slapd-neo/db/userRoot
[root@neo userRoot]# ls
aci.db4         cn.db4     entrydn.db4   nsUniqueId.db4       objectclass.db4
ancestorid.db4  DBVERSION  id2entry.db4  numsubordinates.db4  parentid.db4
[root@neo userRoot]#      

-----------------------------------------------------------
with DS 8.0, I see only these,

[root@margo userRoot]# pwd
/DS8.0-31081/server/slapd-margo/db/userRoot
[root@margo userRoot]# ls
aci.db4         DBVERSION    id2entry.db4    numsubordinates.db4  parentid.db4
ancestorid.db4  entrydn.db4  nsuniqueid.db4  objectclass.db4
[root@margo userRoot]#

-----------------------------------------------------------
Comment 1 Rich Megginson 2007-07-24 19:54:59 EDT
Created attachment 159896 [details]
diffs
Comment 2 Noriko Hosoi 2007-07-24 20:07:24 EDT
Your fix looks good.
Comment 3 Rich Megginson 2007-07-25 11:20:49 EDT
Created attachment 159938 [details]
cvs commit log

Reviewed by: nhosoi (Thanks!)
Fix Description: When creating the database instance during dse.ldif
processing, we do not create the user defined indexes from the defaults for
this backend. This used to work in the old setup code because that code would
always add the configuration for the indexes for the new instance.  The way it
is supposed to work is that a new instance should just copy the default indexes
for that backend.  This works fine when adding an instance via LDAP but not
during startup.  I just added a call to have this done during startup.	I also
removed some obsolete indexes from the default indexes.
Platforms tested: RHEL4
Flag Day: no
Doc impact: no
Comment 4 Anh Nguyen 2007-11-28 13:23:27 EST
changed status to VERIFIED
[root@optimusvm7 userRoot]# ls
aci.db4         cn.db4     entrydn.db4   nsuniqueid.db4       objectclass.db4
ancestorid.db4  DBVERSION  id2entry.db4  numsubordinates.db4  parentid.db4

Note You need to log in before you can comment on or make changes to this bug.