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
Christopher Ng
OpenLDAP
Commits
a1a63bea
Commit
a1a63bea
authored
17 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#4188 check for pool pause every 64 entries. (probably should make
this number tunable.)
parent
6715f737
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/ldap_pvt_thread.h
+1
-0
1 addition, 0 deletions
include/ldap_pvt_thread.h
libraries/libldap_r/tpool.c
+4
-0
4 additions, 0 deletions
libraries/libldap_r/tpool.c
servers/slapd/result.c
+7
-0
7 additions, 0 deletions
servers/slapd/result.c
with
12 additions
and
0 deletions
include/ldap_pvt_thread.h
+
1
−
0
View file @
a1a63bea
...
...
@@ -215,6 +215,7 @@ typedef enum {
LDAP_PVT_THREAD_POOL_PARAM_OPEN
,
LDAP_PVT_THREAD_POOL_PARAM_STARTING
,
LDAP_PVT_THREAD_POOL_PARAM_ACTIVE
,
LDAP_PVT_THREAD_POOL_PARAM_PAUSING
,
LDAP_PVT_THREAD_POOL_PARAM_PENDING
,
LDAP_PVT_THREAD_POOL_PARAM_BACKLOAD
,
LDAP_PVT_THREAD_POOL_PARAM_ACTIVE_MAX
,
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap_r/tpool.c
+
4
−
0
View file @
a1a63bea
...
...
@@ -397,6 +397,10 @@ ldap_pvt_thread_pool_query(
count
=
pool
->
ltp_active_count
;
break
;
case
LDAP_PVT_THREAD_POOL_PARAM_PAUSING
:
count
=
pool
->
ltp_pause
;
break
;
case
LDAP_PVT_THREAD_POOL_PARAM_PENDING
:
count
=
pool
->
ltp_pending_count
;
break
;
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/result.c
+
7
−
0
View file @
a1a63bea
...
...
@@ -743,6 +743,13 @@ slap_send_search_entry( Operation *op, SlapReply *rs )
return
LDAP_SIZELIMIT_EXCEEDED
;
}
/* Every 64 entries, check for thread pool pause */
if
((
rs
->
sr_nentries
&
0x3f
==
0x3f
)
&&
ldap_pvt_thread_pool_query
(
&
connection_pool
,
LDAP_PVT_THREAD_POOL_PARAM_PAUSING
,
&
i
)
==
0
&&
i
)
{
return
LDAP_BUSY
;
}
rs
->
sr_type
=
REP_SEARCH
;
/* eventually will loop through generated operational attribute types
...
...
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