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
7e310a62
Commit
7e310a62
authored
20 years ago
by
Jong Hyuk Choi
Browse files
Options
Downloads
Patches
Plain Diff
data struct for zone allocator
parent
fa4918ec
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/slap.h
+35
-0
35 additions, 0 deletions
servers/slapd/slap.h
with
35 additions
and
0 deletions
servers/slapd/slap.h
+
35
−
0
View file @
7e310a62
...
...
@@ -2631,6 +2631,9 @@ typedef int (SLAP_CTRL_PARSE_FN) LDAP_P((
#define SLAP_SLAB_STACK 1
#define SLAP_SLAB_SOBLOCK 64
#define SLAP_ZONE_ALLOC 1
#undef SLAP_ZONE_ALLOC
#if defined(LDAP_DEVEL) && defined(ENABLE_REWRITE)
/* use librewrite for sasl-regexp */
#define SLAP_AUTH_REWRITE 1
...
...
@@ -2849,6 +2852,38 @@ struct slab_heap {
LDAP_LIST_HEAD
(
sh_so
,
slab_object
)
sh_sopool
;
};
#ifdef SLAP_ZONE_ALLOC
#define SLAP_ZONE_SIZE 0x80000
/* 512KB */
#define SLAP_ZONE_SHIFT 19
#define SLAP_ZONE_INITSIZE 0x800000
/* 8MB */
#define SLAP_ZONE_DELTA 0x800000
/* 8MB */
#define SLAP_ZONE_ZOBLOCK 256
struct
zone_object
{
void
*
zo_ptr
;
int
zo_siz
;
int
zo_idx
;
int
zo_blockhead
;
LDAP_LIST_ENTRY
(
zone_object
)
zo_link
;
};
struct
zone_heap
{
int
zh_fd
;
int
zh_zonesize
;
int
zh_zoneorder
;
int
zh_numzones
;
int
zh_maxzones
;
int
zh_deltazones
;
void
**
zh_zones
;
Avlnode
*
zh_zonetree
;
unsigned
char
***
zh_maps
;
unsigned
long
*
zh_seqno
;
LDAP_LIST_HEAD
(
zh_freelist
,
zone_object
)
*
zh_free
;
LDAP_LIST_HEAD
(
zh_so
,
zone_object
)
zh_zopool
;
ldap_pvt_thread_mutex_t
zh_mutex
;
};
#endif
#define SLAP_BACKEND_INIT_MODULE(b) \
int \
init_module( int argc, char *argv[] ) \
...
...
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