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
David Barchiesi
OpenLDAP
Commits
2a9339e9
Commit
2a9339e9
authored
14 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
ITS#6710
parent
7cfceb21
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+1
-0
1 addition, 0 deletions
CHANGES
servers/slapd/overlays/syncprov.c
+10
-3
10 additions, 3 deletions
servers/slapd/overlays/syncprov.c
with
11 additions
and
3 deletions
CHANGES
+
1
−
0
View file @
2a9339e9
...
...
@@ -50,6 +50,7 @@ OpenLDAP 2.4.24 Engineering
Fixed slapo-syncprov to send error if consumer is newer (ITS#6606)
Fixed slapo-syncprov filter race condition (ITS#6708)
Fixed slapo-syncprov active mod race (ITS#6709)
Fixed slapo-syncprov to refresh if context is dirty (ITS#6710)
Fixed contrib/autogroup LDAP URI with attribute filter (ITS#6536)
Fixed contrib/nssov to only close socket on shutdown (ITS#6676)
Fixed contrib/nssov multi platform support (ITS#6604)
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/overlays/syncprov.c
+
10
−
3
View file @
2a9339e9
...
...
@@ -134,6 +134,8 @@ typedef struct syncprov_info_t {
int
si_nopres
;
/* Skip present phase */
int
si_usehint
;
/* use reload hint */
int
si_active
;
/* True if there are active mods */
int
si_dirty
;
/* True if the context is dirty, i.e changes
* have been made without updating the csn. */
time_t
si_chklast
;
/* time of last checkpoint */
Avlnode
*
si_mods
;
/* entries being modified */
sessionlog
*
si_logs
;
...
...
@@ -1812,6 +1814,8 @@ syncprov_op_response( Operation *op, SlapReply *rs )
csn_changed
=
1
;
}
}
if
(
csn_changed
)
si
->
si_dirty
=
0
;
ldap_pvt_thread_rdwr_wunlock
(
&
si
->
si_csn_rwlock
);
if
(
csn_changed
)
{
...
...
@@ -1855,6 +1859,7 @@ syncprov_op_response( Operation *op, SlapReply *rs )
}
}
}
si
->
si_dirty
=
!
csn_changed
;
ldap_pvt_thread_rdwr_wunlock
(
&
si
->
si_csn_rwlock
);
if
(
do_check
)
{
...
...
@@ -2373,6 +2378,7 @@ syncprov_op_search( Operation *op, SlapReply *rs )
BerVarray
ctxcsn
;
int
i
,
*
sids
,
numcsns
;
struct
berval
mincsn
;
int
dirty
=
0
;
if
(
!
(
op
->
o_sync_mode
&
SLAP_SYNC_REFRESH
)
)
return
SLAP_CB_CONTINUE
;
...
...
@@ -2448,6 +2454,7 @@ syncprov_op_search( Operation *op, SlapReply *rs )
ctxcsn
=
NULL
;
sids
=
NULL
;
}
dirty
=
si
->
si_dirty
;
ldap_pvt_thread_rdwr_runlock
(
&
si
->
si_csn_rwlock
);
/* If we have a cookie, handle the PRESENT lookups */
...
...
@@ -2527,7 +2534,7 @@ bailout:
if
(
changed
)
break
;
}
if
(
!
changed
)
{
if
(
!
changed
&&
!
dirty
)
{
do_present
=
0
;
no_change:
if
(
!
(
op
->
o_sync_mode
&
SLAP_SYNC_PERSIST
)
)
{
LDAPControl
*
ctrls
[
2
];
...
...
@@ -2611,7 +2618,7 @@ shortcut:
}
/* If something changed, find the changes */
if
(
gotstate
&&
changed
)
{
if
(
gotstate
&&
(
changed
||
dirty
)
)
{
Filter
*
fand
,
*
fava
;
fand
=
op
->
o_tmpalloc
(
sizeof
(
Filter
),
op
->
o_tmpmemctx
);
...
...
@@ -2656,7 +2663,7 @@ shortcut:
* the refresh phase, just invoke the response callback to transition
* us into persist phase
*/
if
(
!
changed
)
{
if
(
!
changed
&&
!
dirty
)
{
rs
->
sr_err
=
LDAP_SUCCESS
;
rs
->
sr_nentries
=
0
;
send_ldap_result
(
op
,
rs
);
...
...
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