Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
4b832f1d
Commit
4b832f1d
authored
May 24, 1999
by
Kurt Zeilenga
Browse files
Do not set db_cachesize under BerkeleyDB 2.4.
parent
4c3f2c9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldbm/ldbm.c
View file @
4b832f1d
...
...
@@ -169,8 +169,19 @@ ldbm_open( char *name, int rw, int mode, int dbcachesize )
DB_INFO
dbinfo
;
memset
(
&
dbinfo
,
0
,
sizeof
(
dbinfo
));
#if defined( DB_VERSION_MAJOR ) && defined( DB_VERSION_MINOR ) && \
DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 4
/*
* BerkeleyDB 2.4 do not allow db_cachesize
* to be specified if an DB_ENV is.
*/
#else
/* set db_cachesize of MPOOL is NOT being used. */
if
((
ldbm_Env
==
NULL
)
||
(
ldbm_Env
->
mp_info
==
NULL
))
dbinfo
.
db_cachesize
=
dbcachesize
;
#endif
dbinfo
.
db_pagesize
=
DEFAULT_DB_PAGE_SIZE
;
dbinfo
.
db_malloc
=
ldbm_malloc
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment