mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 06:31:11 -05:00
Add calls to PERL_SET_CONTEXT, as the active thread might not be the one
that created the PerlInterpreter object (ITS#4751)
This commit is contained in:
parent
72e586ba36
commit
cdb9b2e2aa
6 changed files with 19 additions and 0 deletions
|
|
@ -26,6 +26,9 @@ perl_back_add(
|
|||
int len;
|
||||
int count;
|
||||
|
||||
#if defined(HAVE_WIN32_ASPERL) || defined(USE_ITHREADS)
|
||||
PERL_SET_CONTEXT( PERL_INTERPRETER );
|
||||
#endif
|
||||
ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );
|
||||
ldap_pvt_thread_mutex_lock( &entry2str_mutex );
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,9 @@ perl_back_compare(
|
|||
op->orc_ava->aa_desc->ad_cname.bv_val ), "=" ),
|
||||
op->orc_ava->aa_value.bv_val );
|
||||
|
||||
#if defined(HAVE_WIN32_ASPERL) || defined(USE_ITHREADS)
|
||||
PERL_SET_CONTEXT( PERL_INTERPRETER );
|
||||
#endif
|
||||
ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -25,6 +25,9 @@ perl_back_delete(
|
|||
PerlBackend *perl_back = (PerlBackend *) op->o_bd->be_private;
|
||||
int count;
|
||||
|
||||
#if defined(HAVE_WIN32_ASPERL) || defined(USE_ITHREADS)
|
||||
PERL_SET_CONTEXT( PERL_INTERPRETER );
|
||||
#endif
|
||||
ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@ perl_back_modify(
|
|||
int count;
|
||||
int i;
|
||||
|
||||
#if defined(HAVE_WIN32_ASPERL) || defined(USE_ITHREADS)
|
||||
PERL_SET_CONTEXT( PERL_INTERPRETER );
|
||||
#endif
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,10 @@ perl_back_modrdn(
|
|||
PerlBackend *perl_back = (PerlBackend *) op->o_bd->be_private;
|
||||
int count;
|
||||
|
||||
#if defined(HAVE_WIN32_ASPERL) || defined(USE_ITHREADS)
|
||||
PERL_SET_CONTEXT( PERL_INTERPRETER );
|
||||
#endif
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ perl_back_search(
|
|||
char *buf;
|
||||
int i;
|
||||
|
||||
#if defined(HAVE_WIN32_ASPERL) || defined(USE_ITHREADS)
|
||||
PERL_SET_CONTEXT( PERL_INTERPRETER );
|
||||
#endif
|
||||
ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue