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
f1ae2e63
Commit
f1ae2e63
authored
20 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Fix BDB 4.3 fasttool, flag must be set before opening environment
parent
262df940
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/back-bdb/init.c
+11
-11
11 additions, 11 deletions
servers/slapd/back-bdb/init.c
with
11 additions
and
11 deletions
servers/slapd/back-bdb/init.c
+
11
−
11
View file @
f1ae2e63
...
...
@@ -242,6 +242,17 @@ bdb_db_open( BackendDB *be )
}
#endif
if
(
bdb
->
bi_dbenv_xflags
!=
0
)
{
rc
=
bdb
->
bi_dbenv
->
set_flags
(
bdb
->
bi_dbenv
,
bdb
->
bi_dbenv_xflags
,
1
);
if
(
rc
!=
0
)
{
Debug
(
LDAP_DEBUG_ANY
,
"bdb_db_open: dbenv_set_flags failed: %s (%d)
\n
"
,
db_strerror
(
rc
),
rc
,
0
);
return
rc
;
}
}
Debug
(
LDAP_DEBUG_TRACE
,
"bdb_db_open: dbenv_open(%s)
\n
"
,
bdb
->
bi_dbenv_home
,
0
,
0
);
...
...
@@ -266,17 +277,6 @@ bdb_db_open( BackendDB *be )
return
rc
;
}
if
(
bdb
->
bi_dbenv_xflags
!=
0
)
{
rc
=
bdb
->
bi_dbenv
->
set_flags
(
bdb
->
bi_dbenv
,
bdb
->
bi_dbenv_xflags
,
1
);
if
(
rc
!=
0
)
{
Debug
(
LDAP_DEBUG_ANY
,
"bdb_db_open: dbenv_set_flags failed: %s (%d)
\n
"
,
db_strerror
(
rc
),
rc
,
0
);
return
rc
;
}
}
flags
=
DB_THREAD
|
bdb
->
bi_db_opflags
;
bdb
->
bi_databases
=
(
struct
bdb_db_info
**
)
ch_malloc
(
...
...
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