Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Jaak Ristioja
OpenLDAP
Commits
cdeda340
Commit
cdeda340
authored
21 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Add c_conn_idx, to simplify external modules managing per-connection state
parent
95459fef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
servers/slapd/connection.c
+4
-0
4 additions, 0 deletions
servers/slapd/connection.c
servers/slapd/slap.h
+1
-0
1 addition, 0 deletions
servers/slapd/slap.h
with
5 additions
and
0 deletions
servers/slapd/connection.c
+
4
−
0
View file @
cdeda340
...
...
@@ -92,6 +92,8 @@ static ldap_pvt_thread_start_t connection_operation;
*/
int
connections_init
(
void
)
{
int
i
;
assert
(
connections
==
NULL
);
if
(
connections
!=
NULL
)
{
...
...
@@ -126,6 +128,8 @@ int connections_init(void)
assert
(
connections
[
0
].
c_struct_state
==
SLAP_C_UNINITIALIZED
);
assert
(
connections
[
dtblsize
-
1
].
c_struct_state
==
SLAP_C_UNINITIALIZED
);
for
(
i
=
0
;
i
<
dtblsize
;
i
++
)
connections
[
i
].
c_conn_idx
=
i
;
/*
* per entry initialization of the Connection array initialization
* will be done by connection_init()
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/slap.h
+
1
−
0
View file @
cdeda340
...
...
@@ -2148,6 +2148,7 @@ typedef struct slap_listener Listener;
typedef
struct
slap_conn
{
int
c_struct_state
;
/* structure management state */
int
c_conn_state
;
/* connection state */
int
c_conn_idx
;
/* slot in connections array */
ldap_pvt_thread_mutex_t
c_mutex
;
/* protect the connection */
Sockbuf
*
c_sb
;
/* ber connection stuff */
...
...
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