diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2010-10-21 23:42:17 -0700 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2010-10-21 23:42:17 -0700 |
commit | 5cd9fc9826fd88b8672129e41523065c0b692c3b (patch) | |
tree | 09e3ea9840008f232933a82faab7ddf9a5e4a721 /ldap/servers/slapd/getsocketpeer.h | |
parent | b065fb3e3fa6ded5569b01bc9ed7a2fda532883d (diff) | |
download | ds-5cd9fc9826fd88b8672129e41523065c0b692c3b.tar.gz ds-5cd9fc9826fd88b8672129e41523065c0b692c3b.tar.xz ds-5cd9fc9826fd88b8672129e41523065c0b692c3b.zip |
Bug 644608 - RHDS 8.1->8.2 upgrade fails to properly migrate ACIs
https://bugzilla.redhat.com/show_bug.cgi?id=644608
Description: Upgrade script ##upgradednformat.pl generates an
ancestorid index file in which the entry IDs are not sorted
in the index values.
This was caused because
1. upgradednformat.pl copies db files to a work dir
/path/to/db/<inst>/dnupgrade/<inst>
and run upgradednformat against the work dir.
2. Since ancestorid index needs to be created from the scratch,
import/upgradednformat code deletes the index and recreates
it.
3. When creating the index file, dblayer_open_file checks if
the to-be-opened index file is (in the standard location AND
the file exists) or not. In this case, the condition is
satisfied. Thus, the db is created using an absolute path
and closed once. Then, it is reopened using a relative path.
4. Before opening an index file, callback functions for libdb
are set. idl_new_compare_dups is one of them which is used
to sort entry IDs in the secondary index attribute values.
The setting is discarded by the close described in 3.
This patch resets the db callbacks and flags after the close.
Note: cherry-picked 058299aeaf48e34f4359f00cc05eb7186a80fc48
Diffstat (limited to 'ldap/servers/slapd/getsocketpeer.h')
0 files changed, 0 insertions, 0 deletions