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
Joe Martin
OpenLDAP
Commits
e8a2ac62
Commit
e8a2ac62
authored
Mar 18, 2009
by
Quanah Gibson-Mount
Browse files
More for ITS#5860
parent
2df658ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb/cache.c
View file @
e8a2ac62
...
...
@@ -674,8 +674,12 @@ bdb_cache_lru_purge( struct bdb_info *bdb )
else
eimax
=
bdb
->
bi_cache
.
c_eimax
;
if
(
bdb
->
bi_cache
.
c_cursize
>
bdb
->
bi_cache
.
c_maxsize
)
efree
=
bdb
->
bi_cache
.
c_cursize
-
bdb
->
bi_cache
.
c_maxsize
;
if
(
efree
<
1
)
efree
=
0
;
else
if
(
efree
<
bdb
->
bi_cache
.
c_minfree
)
efree
=
bdb
->
bi_cache
.
c_minfree
;
if
(
bdb
->
bi_cache
.
c_leaves
>
eimax
)
{
eifree
=
bdb
->
bi_cache
.
c_minfree
*
10
;
if
(
eifree
>=
eimax
)
...
...
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