mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 02:29:34 -05:00
ITS#798: don't block on empty replog log in one-shot mode
This commit is contained in:
parent
11fbe2a45c
commit
cdc0a66558
1 changed files with 7 additions and 1 deletions
|
|
@ -62,7 +62,13 @@ Ri_process(
|
|||
rq->rq_lock( rq );
|
||||
while ( !sglob->slurpd_shutdown &&
|
||||
(( re = rq->rq_gethead( rq )) == NULL )) {
|
||||
/* No work - wait on condition variable */
|
||||
/* No work */
|
||||
if ( sglob->one_shot_mode ) {
|
||||
/* give up if in one shot mode */
|
||||
rq->rq_unlock( rq );
|
||||
return 0;
|
||||
}
|
||||
/* wait on condition variable */
|
||||
ldap_pvt_thread_cond_wait( &rq->rq_more, &rq->rq_mutex );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue