mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 11:09:34 -05:00
check for shutdown (need to add to other backends?)
This commit is contained in:
parent
b95e40f56f
commit
7c66952714
1 changed files with 9 additions and 0 deletions
|
|
@ -660,6 +660,15 @@ loop_begin:
|
|||
goto done;
|
||||
}
|
||||
|
||||
/* mostly needed by internal searches,
|
||||
* e.g. related to syncrepl, for whom
|
||||
* abandon does not get set... */
|
||||
if ( slapd_shutdown ) {
|
||||
rs->sr_err = LDAP_UNAVAILABLE;
|
||||
send_ldap_disconnect( op, rs );
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* check time limit */
|
||||
if ( op->ors_tlimit != SLAP_NO_LIMIT
|
||||
&& slap_get_time() > stoptime )
|
||||
|
|
|
|||
Loading…
Reference in a new issue