mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Quit send loops if slapd is shutting down
This commit is contained in:
parent
a06696a1ef
commit
a07d3630cb
@ -471,7 +471,9 @@ range_err:
|
||||
be = op->o_bd;
|
||||
for ( i=0; i<j; i++ ) {
|
||||
sort_node *sn = cur_node->avl_data;
|
||||
|
||||
|
||||
if ( slapd_shutdown ) break;
|
||||
|
||||
op->o_bd = select_backend( &sn->sn_dn, 0 );
|
||||
e = NULL;
|
||||
rc = be_entry_get_rw( op, &sn->sn_dn, NULL, NULL, 0, &e );
|
||||
@ -503,6 +505,8 @@ static void send_page( Operation *op, SlapReply *rs, sort_op *so )
|
||||
while ( cur_node && rs->sr_nentries < so->so_page_size ) {
|
||||
sort_node *sn = cur_node->avl_data;
|
||||
|
||||
if ( slapd_shutdown ) break;
|
||||
|
||||
next_node = tavl_next( cur_node, TAVL_DIR_RIGHT );
|
||||
|
||||
op->o_bd = select_backend( &sn->sn_dn, 0 );
|
||||
|
Loading…
Reference in New Issue
Block a user