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
ea4bf672
Commit
ea4bf672
authored
23 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Sync detection with use. Don't use DB_CDB_ALLDB. Causes hang.
parent
d397f6aa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/openldap.m4
+2
-0
2 additions, 0 deletions
build/openldap.m4
libraries/libldbm/ldbm.c
+14
-6
14 additions, 6 deletions
libraries/libldbm/ldbm.c
with
16 additions
and
6 deletions
build/openldap.m4
+
2
−
0
View file @
ea4bf672
...
...
@@ -352,6 +352,7 @@ main()
return rc;
}
#if 0
#ifdef DB_CDB_ALLDB
rc = env->set_flags( env, DB_CDB_ALLDB, 1 );
...
...
@@ -360,6 +361,7 @@ main()
return rc;
}
#endif
#endif
#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
rc = env->open( env, NULL, flags, 0 );
...
...
This diff is collapsed.
Click to expand it.
libraries/libldbm/ldbm.c
+
14
−
6
View file @
ea4bf672
...
...
@@ -224,15 +224,19 @@ DB_ENV *ldbm_initialize_env(const char *home, int dbcachesize, int *envdirok)
int
err
;
u_int32_t
envFlags
;
envFlags
=
envFlags
=
DB_CREATE
|
#if defined( DB_PRIVATE )
/* comment out DB_PRIVATE setting to use */
DB_PRIVATE
|
/* db_stat to view cache behavior */
#endif
#if defined( HAVE_BERKELEY_DB_THREAD )
DB_THREAD
|
DB_USE_ENVIRON
;
#ifdef HAVE_BERKELEY_DB_THREAD
envFlags
|=
DB_THREAD
|
DB_INIT_CDB
|
DB_INIT_MPOOL
;
#ifdef DB_MPOOL_PRIVATE
envFlags
|=
DB_MPOOL_PRIVATE
;
#endif
DB_CREATE
;
#endif
err
=
db_env_create
(
&
env
,
0
);
if
(
err
)
{
...
...
@@ -251,7 +255,11 @@ DB_ENV *ldbm_initialize_env(const char *home, int dbcachesize, int *envdirok)
if
(
dbcachesize
)
env
->
set_cachesize
(
env
,
0
,
dbcachesize
,
0
);
envFlags
|=
DB_INIT_MPOOL
|
DB_INIT_CDB
|
DB_USE_ENVIRON
;
#if 0
#if defined( DB_CDB_ALLDB ) && defined( HAVE_BERKELEY_DB_THREAD )
env->set_flags( env, DB_CDB_ALLDB, 1 );
#endif
#endif
#if DB_VERSION_MAJOR > 3 || DB_VERSION_MINOR > 0
err
=
env
->
open
(
env
,
home
,
envFlags
,
0
);
...
...
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