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
4bee4dd5
Commit
4bee4dd5
authored
Feb 18, 2009
by
Quanah Gibson-Mount
Browse files
ITS#5956
parent
1eb30b0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
4bee4dd5
...
...
@@ -4,6 +4,7 @@ OpenLDAP 2.4.15 Engineering
Fixed libldap GnuTLS compilation (ITS#5955)
Fixed slapd corrupt contextCSN (ITS#5947)
Fixed slapd syncrepl order to match on add/delete (ITS#5954)
Fixed slapd-bdb/hdb behavior with unallocatable shm (ITS#5956)
Fixed slapo-rwm objectClass preservation (ITS#5760)
Build Environment
Fixed tester library linking for windows (ITS#5740)
...
...
servers/slapd/back-bdb/init.c
View file @
4bee4dd5
...
...
@@ -111,6 +111,7 @@ bdb_db_open( BackendDB *be, ConfigReply *cr )
Entry
*
e
=
NULL
;
int
do_recover
=
0
,
do_alock_recover
=
0
;
int
alockt
,
quick
=
0
;
int
do_retry
=
1
;
if
(
be
->
be_suffix
==
NULL
)
{
Debug
(
LDAP_DEBUG_ANY
,
...
...
@@ -335,11 +336,12 @@ shm_retry:
if
(
!
do_recover
&&
bdb
->
bi_shm_key
)
{
bdb
->
bi_dbenv
->
close
(
bdb
->
bi_dbenv
,
0
);
rc
=
db_env_create
(
&
bdb
->
bi_dbenv
,
0
);
if
(
rc
==
0
)
{
if
(
rc
==
0
&&
do_retry
)
{
Debug
(
LDAP_DEBUG_ANY
,
LDAP_XSTRING
(
bdb_db_open
)
": database
\"
%s
\"
: "
"shared memory env open failed, assuming stale env.
\n
"
,
be
->
be_suffix
[
0
].
bv_val
,
0
,
0
);
do_retry
=
0
;
goto
shm_retry
;
}
}
...
...
Write
Preview
Markdown
is supported
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