Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
966dd1bd
Commit
966dd1bd
authored
22 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
definitely fix NOOP in back-bdb
parent
fd330269
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
servers/slapd/back-bdb/modify.c
+15
-8
15 additions, 8 deletions
servers/slapd/back-bdb/modify.c
servers/slapd/back-bdb/modrdn.c
+3
-1
3 additions, 1 deletion
servers/slapd/back-bdb/modrdn.c
with
18 additions
and
9 deletions
servers/slapd/back-bdb/modify.c
+
15
−
8
View file @
966dd1bd
...
...
@@ -166,9 +166,10 @@ int bdb_modify_internal(
e
->
e_ocflags
=
0
;
}
/* check if modified attribute was indexed */
/* check if modified attribute was indexed
* but not in case of NOOP... */
err
=
bdb_index_is_indexed
(
be
,
mod
->
sm_desc
);
if
(
err
==
LDAP_SUCCESS
)
{
if
(
err
==
LDAP_SUCCESS
&&
!
op
->
o_noop
)
{
ap
=
attr_find
(
save_attrs
,
mod
->
sm_desc
);
if
(
ap
)
ap
->
a_flags
|=
SLAP_ATTR_IXDEL
;
...
...
@@ -179,17 +180,23 @@ int bdb_modify_internal(
/* check that the entry still obeys the schema */
rc
=
entry_schema_check
(
be
,
e
,
save_attrs
,
text
,
textbuf
,
textlen
);
if
(
rc
!=
LDAP_SUCCESS
)
{
if
(
rc
!=
LDAP_SUCCESS
||
op
->
o_noop
)
{
attrs_free
(
e
->
e_attrs
);
e
->
e_attrs
=
save_attrs
;
if
(
rc
!=
LDAP_SUCCESS
)
{
#ifdef NEW_LOGGING
LDAP_LOG
(
OPERATION
,
ERR
,
"bdb_modify_internal:
entry failed schema check %s
\n
"
,
*
text
,
0
,
0
);
LDAP_LOG
(
OPERATION
,
ERR
,
"bdb_modify_internal: "
"
entry failed schema check %s
\n
"
,
*
text
,
0
,
0
);
#else
Debug
(
LDAP_DEBUG_ANY
,
"entry failed schema check: %s
\n
"
,
*
text
,
0
,
0
);
Debug
(
LDAP_DEBUG_ANY
,
"entry failed schema check: %s
\n
"
,
*
text
,
0
,
0
);
#endif
}
/* if NOOP then silently revert to saved attrs */
return
rc
;
}
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-bdb/modrdn.c
+
3
−
1
View file @
966dd1bd
...
...
@@ -752,7 +752,9 @@ retry: /* transaction retry */
op
->
o_noop
?
" (no-op)"
:
""
,
e
->
e_id
,
e
->
e_dn
);
#endif
text
=
NULL
;
bdb_cache_entry_commit
(
e
);
if
(
!
noop
)
{
bdb_cache_entry_commit
(
e
);
}
}
else
{
#ifdef NEW_LOGGING
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment