Skip to content
Snippets Groups Projects
Commit cdc0a665 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ITS#798: don't block on empty replog log in one-shot mode

parent 11fbe2a4
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment