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
76e15b6e
Commit
76e15b6e
authored
Feb 07, 2013
by
Howard Chu
Committed by
Quanah Gibson-Mount
Apr 11, 2013
Browse files
ITS#6365 wait for read locks in tool mode
Fix commit
e5b96f2c
parent
f6045423
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb/init.c
View file @
76e15b6e
...
...
@@ -529,7 +529,13 @@ shm_retry:
}
if
(
!
quick
)
{
TXN_BEGIN
(
bdb
->
bi_dbenv
,
NULL
,
&
bdb
->
bi_cache
.
c_txn
,
DB_READ_COMMITTED
|
DB_TXN_NOWAIT
);
int
txflag
=
DB_READ_COMMITTED
;
/* avoid deadlocks in server; tools should
* wait since they have no deadlock retry mechanism.
*/
if
(
slapMode
&
SLAP_SERVER_MODE
)
txflag
|=
DB_TXN_NOWAIT
;
TXN_BEGIN
(
bdb
->
bi_dbenv
,
NULL
,
&
bdb
->
bi_cache
.
c_txn
,
txflag
);
}
entry_prealloc
(
bdb
->
bi_cache
.
c_maxsize
);
...
...
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