[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#7616) syncrepl enhancement: defer requests when refreshing

Full_Name: Howard Chu
Version: 2.4.35
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (
Submitted by: hyc

We've discussed this on -devel a few times in the past. Sometimes it would be
desirable to prevent a consumer from answering client requests if it has just
started up and needs to perform an lengthy refresh.

In prior discussions, there was a concern that in an MMR situation, two servers
coming up at the same time would deadlock waiting for each other. We can avoid
this problem by allowing any search request with a Sync control to proceed as
normal. Or, any search request with a Sync control and a non-empty, valid

Implementation can be done using an overlay hook. Note that syncrepl already
installs an overlay hook now for delta-mmr, this would just expand the scope of
that internal overlay.