Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Oren Tirosh
OpenLDAP
Commits
65686b72
Commit
65686b72
authored
23 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Do version checks for BDB 3 or greater
parent
2f62c372
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/libldbm/ldbm.c
+4
-24
4 additions, 24 deletions
libraries/libldbm/ldbm.c
with
4 additions
and
24 deletions
libraries/libldbm/ldbm.c
+
4
−
24
View file @
65686b72
...
...
@@ -102,8 +102,6 @@ ldbm_db_errcall( const char *prefix, char *message )
#endif
}
#if DB_VERSION_MAJOR < 3
int
ldbm_initialize
(
const
char
*
home
)
{
int
err
;
...
...
@@ -134,6 +132,7 @@ int ldbm_initialize( const char* home )
}
}
#if DB_VERSION_MAJOR < 3
#ifndef HAVE_BERKELEY_DB_THREAD
ldap_pvt_thread_mutex_init
(
&
ldbm_big_mutex
);
#endif
...
...
@@ -174,6 +173,7 @@ int ldbm_initialize( const char* home )
#endif
return
(
1
);
}
#endif
return
0
;
}
...
...
@@ -182,35 +182,17 @@ int ldbm_shutdown( void )
{
if
(
!
ldbm_initialized
)
return
1
;
#if DB_VERSION_MAJOR < 3
db_appexit
(
ldbm_Env
);
#ifndef HAVE_BERKELEY_DB_THREAD
ldap_pvt_thread_mutex_destroy
(
&
ldbm_big_mutex
);
#endif
#endif
return
0
;
}
#else
/* Berkeley v3 or greater */
int
ldbm_initialize
(
const
char
*
home
)
{
/* v3 uses ldbm_initialize_env */
return
0
;
}
int
ldbm_shutdown
(
void
)
{
return
0
;
}
#endif
#else
/* some DB other than Berkeley V2 or greater */
int
ldbm_initialize
(
const
char
*
home
)
...
...
@@ -236,7 +218,6 @@ int ldbm_shutdown( void )
#if defined( HAVE_BERKELEY_DB ) && (DB_VERSION_MAJOR >= 3)
DB_ENV
*
ldbm_initialize_env
(
const
char
*
home
,
int
dbcachesize
,
int
*
envdirok
)
{
DB_ENV
*
env
=
NULL
;
...
...
@@ -315,7 +296,6 @@ void ldbm_shutdown_env(DB_ENV *env)
{
}
#endif
...
...
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