mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Misc adjustments to CBM tests
This commit is contained in:
parent
55b3490996
commit
94e1d48032
@ -317,6 +317,13 @@ main()
|
||||
int rc;
|
||||
u_int32_t flags = DB_CREATE | DB_THREAD | DB_INIT_CDB | DB_INIT_MPOOL;
|
||||
|
||||
#ifdef DB_PRIVATE
|
||||
flags |= DB_PRIVATE;
|
||||
#endif
|
||||
#ifdef DB_MPOOL_PRIVATE
|
||||
flags |= DB_MPOOL_PRIVATE;
|
||||
#endif
|
||||
|
||||
#if DB_VERSION_MAJOR > 2
|
||||
DB_ENV *env = NULL;
|
||||
|
||||
|
@ -125,10 +125,11 @@ int ldbm_initialize( const char* home )
|
||||
#ifdef DB_PRIVATE
|
||||
envFlags |= DB_PRIVATE;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BERKELEY_DB_THREAD
|
||||
envFlags |= DB_THREAD;
|
||||
#if DB_VERSION_MAJOR == 2
|
||||
envFlags |= DB_INIT_CDB | DB_INIT_MPOOL;
|
||||
envFlags |= DB_THREAD | DB_INIT_CDB | DB_INIT_MPOOL;
|
||||
#ifdef DB_MPOOL_PRIVATE
|
||||
envFlags |= DB_MPOOL_PRIVATE;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user