Quanah Gibson-Mount pushed to branch master at openldap / OpenLDAP
Commits: 75636a40 by Ondřej Kuzník at 2021-12-15T01:22:38+00:00 ITS#9584 Track refreshing status explicitly
A refresh can jump across multiple threads, we cannot just lock a mutex, we need to track who that is and clear when finished.
In addition to that, fix our internal syncrepl session tracking pulling it closer to RFC 4533, refreshDone now represents the receipt of refreshDone flag. Refreshing status is maintained for plain refreshes (and times when we might be starting one but don't know for sure).
We still reschedule a new sync with a delay if there is another one running but tracking refreshes this way paves the way to being able to wake them up if we start tracking them somehow.
- - - - -
1 changed file:
- servers/slapd/syncrepl.c
View it on GitLab: https://git.openldap.org/openldap/openldap/-/commit/75636a407e38f1502c592566...