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
James Lowden
OpenLDAP
Commits
63346af6
Commit
63346af6
authored
6 years ago
by
Howard Chu
Committed by
Quanah Gibson-Mount
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ITS#8752 cleanup prev commit
parent
0dae55ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/overlays/accesslog.c
+7
-29
7 additions, 29 deletions
servers/slapd/overlays/accesslog.c
with
7 additions
and
29 deletions
servers/slapd/overlays/accesslog.c
+
7
−
29
View file @
63346af6
...
@@ -1449,11 +1449,9 @@ accesslog_op2logop( Operation *op )
...
@@ -1449,11 +1449,9 @@ accesslog_op2logop( Operation *op )
return
LOG_EN_UNKNOWN
;
return
LOG_EN_UNKNOWN
;
}
}
static
int
accesslog_mod_cleanup
(
Operation
*
op
,
SlapReply
*
rs
);
static
int
accesslog_response
(
Operation
*
op
,
SlapReply
*
rs
)
{
static
int
accesslog_response
(
Operation
*
op
,
SlapReply
*
rs
)
{
slap_overinst
*
on
=
(
slap_overinst
*
)
op
->
o_callback
->
sc_private
;
slap_overinst
*
on
=
(
slap_overinst
*
)
op
->
o_callback
->
sc_private
;
log_info
*
li
;
log_info
*
li
=
on
->
on_bi
.
bi_private
;
Attribute
*
a
,
*
last_attr
;
Attribute
*
a
,
*
last_attr
;
Modifications
*
m
;
Modifications
*
m
;
struct
berval
*
b
,
uuid
=
BER_BVNULL
;
struct
berval
*
b
,
uuid
=
BER_BVNULL
;
...
@@ -1468,9 +1466,11 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
...
@@ -1468,9 +1466,11 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
Operation
op2
=
{
0
};
Operation
op2
=
{
0
};
SlapReply
rs2
=
{
REP_RESULT
};
SlapReply
rs2
=
{
REP_RESULT
};
if
(
!
on
)
{
return
SLAP_CB_CONTINUE
;
slap_callback
*
sc
=
op
->
o_callback
;
li
=
on
->
on_bi
.
bi_private
;
op
->
o_callback
=
sc
->
sc_next
;
op
->
o_tmpfree
(
sc
,
op
->
o_tmpmemctx
);
}
if
(
rs
->
sr_type
!=
REP_RESULT
&&
rs
->
sr_type
!=
REP_EXTENDED
)
if
(
rs
->
sr_type
!=
REP_RESULT
&&
rs
->
sr_type
!=
REP_EXTENDED
)
return
SLAP_CB_CONTINUE
;
return
SLAP_CB_CONTINUE
;
...
@@ -1504,13 +1504,6 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
...
@@ -1504,13 +1504,6 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
uuid
=
li
->
li_uuid
;
uuid
=
li
->
li_uuid
;
li
->
li_old
=
NULL
;
li
->
li_old
=
NULL
;
BER_BVZERO
(
&
li
->
li_uuid
);
BER_BVZERO
(
&
li
->
li_uuid
);
/* Disarm mod_cleanup */
for
(
cb
=
op
->
o_callback
;
cb
;
cb
=
cb
->
sc_next
)
{
if
(
cb
->
sc_cleanup
==
accesslog_mod_cleanup
&&
cb
->
sc_private
==
(
void
*
)
on
)
{
cb
->
sc_private
=
NULL
;
break
;
}
}
#ifdef RMUTEX_DEBUG
#ifdef RMUTEX_DEBUG
Debug
(
LDAP_DEBUG_SYNC
,
Debug
(
LDAP_DEBUG_SYNC
,
"accesslog_response: unlocking rmutex for tid %x
\n
"
,
"accesslog_response: unlocking rmutex for tid %x
\n
"
,
...
@@ -1908,21 +1901,6 @@ accesslog_op_misc( Operation *op, SlapReply *rs )
...
@@ -1908,21 +1901,6 @@ accesslog_op_misc( Operation *op, SlapReply *rs )
return
SLAP_CB_CONTINUE
;
return
SLAP_CB_CONTINUE
;
}
}
static
int
accesslog_mod_cleanup
(
Operation
*
op
,
SlapReply
*
rs
)
{
slap_callback
*
sc
=
op
->
o_callback
;
slap_overinst
*
on
=
sc
->
sc_private
;
if
(
on
&&
rs
->
sr_err
!=
LDAP_SUCCESS
)
{
accesslog_response
(
op
,
rs
);
}
op
->
o_callback
=
sc
->
sc_next
;
op
->
o_tmpfree
(
sc
,
op
->
o_tmpmemctx
);
return
0
;
}
static
int
static
int
accesslog_op_mod
(
Operation
*
op
,
SlapReply
*
rs
)
accesslog_op_mod
(
Operation
*
op
,
SlapReply
*
rs
)
{
{
...
@@ -1952,7 +1930,7 @@ accesslog_op_mod( Operation *op, SlapReply *rs )
...
@@ -1952,7 +1930,7 @@ accesslog_op_mod( Operation *op, SlapReply *rs )
if
(
doit
)
{
if
(
doit
)
{
slap_callback
*
cb
=
op
->
o_tmpcalloc
(
1
,
sizeof
(
slap_callback
),
op
->
o_tmpmemctx
);
slap_callback
*
cb
=
op
->
o_tmpcalloc
(
1
,
sizeof
(
slap_callback
),
op
->
o_tmpmemctx
);
cb
->
sc_cleanup
=
accesslog_
mod_cleanup
;
cb
->
sc_cleanup
=
accesslog_
response
;
cb
->
sc_response
=
accesslog_response
;
cb
->
sc_response
=
accesslog_response
;
cb
->
sc_private
=
on
;
cb
->
sc_private
=
on
;
cb
->
sc_next
=
op
->
o_callback
;
cb
->
sc_next
=
op
->
o_callback
;
...
...
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