mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Check for abandon during transaction retry
This commit is contained in:
parent
3a42760472
commit
b45a912070
@ -95,6 +95,10 @@ retry: /* transaction retry */
|
||||
rs->sr_text = "internal error";
|
||||
goto return_results;
|
||||
}
|
||||
if ( op->o_abandon ) {
|
||||
rs->sr_err = SLAPD_ABANDON;
|
||||
goto done;
|
||||
}
|
||||
ldap_pvt_thread_yield();
|
||||
bdb_trans_backoff( ++num_retries );
|
||||
}
|
||||
|
@ -83,6 +83,10 @@ retry: /* transaction retry */
|
||||
rs->sr_text = "internal error";
|
||||
goto return_results;
|
||||
}
|
||||
if ( op->o_abandon ) {
|
||||
rs->sr_err = SLAPD_ABANDON;
|
||||
goto done;
|
||||
}
|
||||
parent_is_glue = 0;
|
||||
parent_is_leaf = 0;
|
||||
ldap_pvt_thread_yield();
|
||||
|
@ -310,6 +310,10 @@ retry: /* transaction retry */
|
||||
rs->sr_text = "internal error";
|
||||
goto return_results;
|
||||
}
|
||||
if ( op->o_abandon ) {
|
||||
rs->sr_err = SLAPD_ABANDON;
|
||||
goto done;
|
||||
}
|
||||
ldap_pvt_thread_yield();
|
||||
bdb_trans_backoff( ++num_retries );
|
||||
}
|
||||
|
@ -103,6 +103,10 @@ retry: /* transaction retry */
|
||||
rs->sr_text = "internal error";
|
||||
goto return_results;
|
||||
}
|
||||
if ( op->o_abandon ) {
|
||||
rs->sr_err = SLAPD_ABANDON;
|
||||
goto done;
|
||||
}
|
||||
parent_is_glue = 0;
|
||||
parent_is_leaf = 0;
|
||||
ldap_pvt_thread_yield();
|
||||
|
Loading…
Reference in New Issue
Block a user