Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
François Kooman
OpenLDAP
Commits
bf7194ab
Commit
bf7194ab
authored
19 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#3923 make perl_back_open symmetric with perl_back_close
parent
3a018600
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
servers/slapd/back-perl/close.c
+0
-13
0 additions, 13 deletions
servers/slapd/back-perl/close.c
servers/slapd/back-perl/init.c
+13
-12
13 additions, 12 deletions
servers/slapd/back-perl/init.c
servers/slapd/back-perl/proto-perl.h
+0
-1
0 additions, 1 deletion
servers/slapd/back-perl/proto-perl.h
with
13 additions
and
26 deletions
servers/slapd/back-perl/close.c
+
0
−
13
View file @
bf7194ab
...
...
@@ -28,20 +28,7 @@ perl_back_close(
BackendInfo
*
bd
)
{
ldap_pvt_thread_mutex_lock
(
&
perl_interpreter_mutex
);
perl_destruct
(
PERL_INTERPRETER
);
ldap_pvt_thread_mutex_unlock
(
&
perl_interpreter_mutex
);
return
0
;
}
int
perl_back_destroy
(
BackendInfo
*
bd
)
{
perl_free
(
PERL_INTERPRETER
);
PERL_INTERPRETER
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-perl/init.c
+
13
−
12
View file @
bf7194ab
...
...
@@ -37,18 +37,6 @@ perl_back_initialize(
{
char
*
embedding
[]
=
{
""
,
"-e"
,
"0"
};
Debug
(
LDAP_DEBUG_TRACE
,
"perl backend open
\n
"
,
0
,
0
,
0
);
if
(
PERL_INTERPRETER
!=
NULL
)
{
Debug
(
LDAP_DEBUG_ANY
,
"perl backend open: already opened
\n
"
,
0
,
0
,
0
);
return
1
;
}
PERL_INTERPRETER
=
perl_alloc
();
perl_construct
(
PERL_INTERPRETER
);
perl_parse
(
PERL_INTERPRETER
,
perl_back_xs_init
,
3
,
embedding
,
(
char
**
)
NULL
);
perl_run
(
PERL_INTERPRETER
);
bi
->
bi_open
=
perl_back_open
;
bi
->
bi_config
=
0
;
...
...
@@ -86,7 +74,20 @@ perl_back_open(
BackendInfo
*
bi
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"perl backend open
\n
"
,
0
,
0
,
0
);
if
(
PERL_INTERPRETER
!=
NULL
)
{
Debug
(
LDAP_DEBUG_ANY
,
"perl backend open: already opened
\n
"
,
0
,
0
,
0
);
return
1
;
}
ldap_pvt_thread_mutex_init
(
&
perl_interpreter_mutex
);
PERL_INTERPRETER
=
perl_alloc
();
perl_construct
(
PERL_INTERPRETER
);
perl_parse
(
PERL_INTERPRETER
,
perl_back_xs_init
,
3
,
embedding
,
(
char
**
)
NULL
);
perl_run
(
PERL_INTERPRETER
);
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-perl/proto-perl.h
+
0
−
1
View file @
bf7194ab
...
...
@@ -24,7 +24,6 @@ extern BI_init perl_back_initialize;
extern
BI_open
perl_back_open
;
extern
BI_close
perl_back_close
;
extern
BI_destroy
perl_back_destroy
;
extern
BI_db_init
perl_back_db_init
;
extern
BI_db_open
perl_back_db_open
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment