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
orbea -
OpenLDAP
Commits
12dbcc0e
Commit
12dbcc0e
authored
Dec 14, 2018
by
Howard Chu
Browse files
More for revert batched writes
parent
79ced664
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
12dbcc0e
...
...
@@ -3046,22 +3046,8 @@ syncrepl_entry(
slap_queue_csn
(
op
,
syncCSN
);
}
if
(
!
si
->
si_refreshDone
)
{
if
(
si
->
si_lazyCommit
)
op
->
o_lazyCommit
=
SLAP_CONTROL_NONCRITICAL
;
if
(
si
->
si_refreshCount
==
500
)
{
LDAP_SLIST_REMOVE
(
&
op
->
o_extra
,
si
->
si_refreshTxn
,
OpExtra
,
oe_next
);
op
->
o_bd
->
bd_info
->
bi_op_txn
(
op
,
SLAP_TXN_COMMIT
,
&
si
->
si_refreshTxn
);
si
->
si_refreshCount
=
0
;
si
->
si_refreshTxn
=
NULL
;
}
if
(
op
->
o_bd
->
bd_info
->
bi_op_txn
)
{
if
(
!
si
->
si_refreshCount
)
{
op
->
o_bd
->
bd_info
->
bi_op_txn
(
op
,
SLAP_TXN_BEGIN
,
&
si
->
si_refreshTxn
);
}
si
->
si_refreshCount
++
;
}
}
if
(
!
si
->
si_refreshDone
&&
si
->
si_lazyCommit
)
op
->
o_lazyCommit
=
SLAP_CONTROL_NONCRITICAL
;
slap_op_time
(
&
op
->
o_time
,
&
op
->
o_tincr
);
switch
(
syncstate
)
{
...
...
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