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
47b18c9a
Commit
47b18c9a
authored
22 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
SLAP_NVALUES: index normalized values
parent
2bd7c30d
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/index.c
+8
-2
8 additions, 2 deletions
servers/slapd/back-bdb/index.c
servers/slapd/back-bdb/modify.c
+12
-2
12 additions, 2 deletions
servers/slapd/back-bdb/modify.c
with
20 additions
and
4 deletions
servers/slapd/back-bdb/index.c
+
8
−
2
View file @
47b18c9a
...
...
@@ -356,8 +356,14 @@ bdb_index_entry(
/* add each attribute to the indexes */
for
(
;
ap
!=
NULL
;
ap
=
ap
->
a_next
)
{
rc
=
bdb_index_values
(
be
,
txn
,
ap
->
a_desc
,
ap
->
a_vals
,
e
->
e_id
,
op
);
#ifdef SLAP_NVALUES
rc
=
bdb_index_values
(
be
,
txn
,
ap
->
a_desc
,
ap
->
a_nvals
?
ap
->
a_nvals
:
ap
->
a_vals
,
e
->
e_id
,
op
);
#else
rc
=
bdb_index_values
(
be
,
txn
,
ap
->
a_desc
,
ap
->
a_vals
,
e
->
e_id
,
op
);
#endif
if
(
rc
!=
LDAP_SUCCESS
)
{
#ifdef NEW_LOGGING
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-bdb/modify.c
+
12
−
2
View file @
47b18c9a
...
...
@@ -209,7 +209,12 @@ int bdb_modify_internal(
/* start with deleting the old index entries */
for
(
ap
=
save_attrs
;
ap
!=
NULL
;
ap
=
ap
->
a_next
)
{
if
(
ap
->
a_flags
&
SLAP_ATTR_IXDEL
)
{
rc
=
bdb_index_values
(
be
,
tid
,
ap
->
a_desc
,
ap
->
a_vals
,
rc
=
bdb_index_values
(
be
,
tid
,
ap
->
a_desc
,
#ifdef SLAP_NVALUES
ap
->
a_nvals
?
ap
->
a_nvals
:
ap
->
a_vals
,
#else
ap
->
a_vals
,
#endif
e
->
e_id
,
SLAP_INDEX_DELETE_OP
);
if
(
rc
!=
LDAP_SUCCESS
)
{
attrs_free
(
e
->
e_attrs
);
...
...
@@ -232,7 +237,12 @@ int bdb_modify_internal(
/* add the new index entries */
for
(
ap
=
e
->
e_attrs
;
ap
!=
NULL
;
ap
=
ap
->
a_next
)
{
if
(
ap
->
a_flags
&
SLAP_ATTR_IXADD
)
{
rc
=
bdb_index_values
(
be
,
tid
,
ap
->
a_desc
,
ap
->
a_vals
,
rc
=
bdb_index_values
(
be
,
tid
,
ap
->
a_desc
,
#ifdef SLAP_NVALUES
ap
->
a_nvals
?
ap
->
a_nvals
:
ap
->
a_vals
,
#else
ap
->
a_vals
,
#endif
e
->
e_id
,
SLAP_INDEX_ADD_OP
);
if
(
rc
!=
LDAP_SUCCESS
)
{
attrs_free
(
e
->
e_attrs
);
...
...
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