Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
a40b1f31
Commit
a40b1f31
authored
Aug 26, 1999
by
Kurt Zeilenga
Browse files
Backout delete before add rdn index change.
parent
e455a7d4
Changes
1
Show whitespace changes
Inline
Side-by-side
servers/slapd/back-ldbm/modrdn.c
View file @
a40b1f31
...
...
@@ -358,10 +358,10 @@ ldbm_back_modrdn(
add_bv
.
bv_val
=
new_rdn_val
;
add_bv
.
bv_len
=
strlen
(
new_rdn_val
);
mod
[
1
].
ml_type
=
new_rdn_type
;
mod
[
1
].
ml_bvalues
=
add_bvals
;
mod
[
1
].
ml_op
=
LDAP_MOD_SOFTADD
;
mod
[
1
].
ml_next
=
NULL
;
mod
[
0
].
ml_type
=
new_rdn_type
;
mod
[
0
].
ml_bvalues
=
add_bvals
;
mod
[
0
].
ml_op
=
LDAP_MOD_SOFTADD
;
mod
[
0
].
ml_next
=
NULL
;
/* Remove old rdn value if required */
...
...
@@ -390,10 +390,11 @@ ldbm_back_modrdn(
/* No need to normalize old_rdn_type, delete_values()
* does that for us
*/
mod
[
0
].
ml_type
=
old_rdn_type
;
mod
[
0
].
ml_bvalues
=
del_bvals
;
mod
[
0
].
ml_op
=
LDAP_MOD_DELETE
;
mod
[
0
].
ml_next
=
&
mod
[
1
];
mod
[
1
].
ml_type
=
old_rdn_type
;
mod
[
1
].
ml_bvalues
=
del_bvals
;
mod
[
1
].
ml_op
=
LDAP_MOD_DELETE
;
mod
[
1
].
ml_next
=
NULL
;
Debug
(
LDAP_DEBUG_TRACE
,
"ldbm_back_modrdn: removing old_rdn_val=%s
\n
"
,
...
...
@@ -438,8 +439,8 @@ ldbm_back_modrdn(
/* modify memory copy of entry */
if
(
ldbm_modify_internal
(
be
,
conn
,
op
,
dn
,
&
mod
[
deleteoldrdn
?
0
:
1
],
e
)
!=
0
)
{
if
(
ldbm_modify_internal
(
be
,
conn
,
op
,
dn
,
&
mod
[
0
],
e
)
!=
0
)
{
goto
return_results
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment