Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
781a6c25
Commit
781a6c25
authored
Aug 26, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Sep 05, 2021
Browse files
ITS
#9538
Only queue csns for ops that don't get skipped
parent
8f8674fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/accesslog.c
View file @
781a6c25
...
@@ -1515,7 +1515,7 @@ accesslog_response(Operation *op, SlapReply *rs)
...
@@ -1515,7 +1515,7 @@ accesslog_response(Operation *op, SlapReply *rs)
Attribute
*
a
,
*
last_attr
;
Attribute
*
a
,
*
last_attr
;
Modifications
*
m
;
Modifications
*
m
;
struct
berval
*
b
,
uuid
=
BER_BVNULL
;
struct
berval
*
b
,
uuid
=
BER_BVNULL
;
int
i
;
int
i
,
success
;
int
logop
;
int
logop
;
slap_verbmasks
*
lo
;
slap_verbmasks
*
lo
;
Entry
*
e
=
NULL
,
*
old
=
NULL
,
*
e_uuid
=
NULL
;
Entry
*
e
=
NULL
,
*
old
=
NULL
,
*
e_uuid
=
NULL
;
...
@@ -1547,6 +1547,16 @@ accesslog_response(Operation *op, SlapReply *rs)
...
@@ -1547,6 +1547,16 @@ accesslog_response(Operation *op, SlapReply *rs)
if
(
op
->
o_dont_replicate
)
if
(
op
->
o_dont_replicate
)
goto
skip
;
goto
skip
;
/*
* ITS#9051 Technically LDAP_REFERRAL and LDAP_SASL_BIND_IN_PROGRESS
* are not errors, but they aren't really success either
*/
success
=
rs
->
sr_err
==
LDAP_SUCCESS
||
rs
->
sr_err
==
LDAP_COMPARE_TRUE
||
rs
->
sr_err
==
LDAP_COMPARE_FALSE
;
if
(
li
->
li_success
&&
!
success
)
goto
skip
;
if
(
!
(
li
->
li_ops
&
lo
->
mask
)
)
{
if
(
!
(
li
->
li_ops
&
lo
->
mask
)
)
{
log_base
*
lb
;
log_base
*
lb
;
...
@@ -1595,15 +1605,6 @@ accesslog_response(Operation *op, SlapReply *rs)
...
@@ -1595,15 +1605,6 @@ accesslog_response(Operation *op, SlapReply *rs)
BER_BVZERO
(
&
li
->
li_uuid
);
BER_BVZERO
(
&
li
->
li_uuid
);
ldap_pvt_thread_mutex_unlock
(
&
li
->
li_op_rmutex
);
ldap_pvt_thread_mutex_unlock
(
&
li
->
li_op_rmutex
);
/*
* ITS#9051 Technically LDAP_REFERRAL and LDAP_SASL_BIND_IN_PROGRESS
* are not errors, but they aren't really success either
*/
if
(
li
->
li_success
&&
rs
->
sr_err
!=
LDAP_SUCCESS
&&
rs
->
sr_err
!=
LDAP_COMPARE_TRUE
&&
rs
->
sr_err
!=
LDAP_COMPARE_FALSE
)
goto
done
;
e
=
accesslog_entry
(
op
,
rs
,
li
,
logop
,
&
op2
);
e
=
accesslog_entry
(
op
,
rs
,
li
,
logop
,
&
op2
);
if
(
!
BER_BVISNULL
(
&
op
->
o_req_ndn
))
if
(
!
BER_BVISNULL
(
&
op
->
o_req_ndn
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment