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
Quanah Gibson-Mount
OpenLDAP
Commits
30baa30b
Commit
30baa30b
authored
Nov 08, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Nov 11, 2021
Browse files
ITS#9738 Remove code deprecated by ITS#9538
parent
eb989be4
Changes
1
Show whitespace changes
Inline
Side-by-side
servers/slapd/overlays/accesslog.c
View file @
30baa30b
...
...
@@ -1602,7 +1602,7 @@ accesslog_response(Operation *op, SlapReply *rs)
op
->
o_log_prefix
,
li
->
li_db_suffix
.
bv_val
);
assert
(
0
);
}
op2
.
o_csn
=
op
->
o_csn
;
slap_queue_csn
(
&
op2
,
&
op
->
o_csn
)
;
}
}
...
...
@@ -1943,26 +1943,6 @@ accesslog_response(Operation *op, SlapReply *rs)
/* contextCSN updates may still reach here */
op2
.
o_dont_replicate
=
op
->
o_dont_replicate
;
if
(
lo
->
mask
&
LOG_OP_WRITES
)
{
struct
berval
maxcsn
;
char
cbuf
[
LDAP_PVT_CSNSTR_BUFSIZE
];
int
foundit
;
cbuf
[
0
]
=
'\0'
;
maxcsn
.
bv_val
=
cbuf
;
maxcsn
.
bv_len
=
sizeof
(
cbuf
);
/* If there was a commit CSN on the main DB,
* we must propagate it to the log DB for its
* own syncprov. Otherwise, don't generate one.
*/
slap_get_commit_csn
(
op
,
&
maxcsn
,
&
foundit
);
if
(
!
BER_BVISEMPTY
(
&
maxcsn
)
)
{
slap_queue_csn
(
&
op2
,
&
op
->
o_csn
);
}
else
{
attr_merge_normalize_one
(
e
,
slap_schema
.
si_ad_entryCSN
,
&
op
->
o_csn
,
op
->
o_tmpmemctx
);
}
}
op2
.
o_bd
->
be_add
(
&
op2
,
&
rs2
);
if
(
rs2
.
sr_err
!=
LDAP_SUCCESS
)
{
Debug
(
LDAP_DEBUG_SYNC
,
"%s accesslog_response: "
...
...
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