[Date Prev][Date Next]
syncrepl ramblings again
- To: openldap-devel@OpenLDAP.org
- Subject: syncrepl ramblings again
- From: Howard Chu <firstname.lastname@example.org>
- Date: Sat, 28 Aug 2004 15:32:18 -0700
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040714
This might be a nice project for someone: turn syncrepl provider support
into an overlay.
Right now the code and data necessary to support it are scattered
across a lot of files, and tiny changes (like be_context_csn) are hard
to keep coordinated, easy to get lost.
At least Persistent Search should be provided as an overlay, and it
would be useful across many other backend types.
In back-bdb we really don't need the last committed CSN to be stored
in a real database entry, we could just search for the greatest CSN at
startup time. We could store it at shutdown time, but for the most part
it would be better as a memory-only virtual entry.
The actual search operations that are associated with the syncrepl
control aren't "special", they can be performed using a regular search
with an appropriately constructed filter. At least, it appears to me
that they are not intimately tied to the workings of the database.
Overall I would like to see some more consolidation of this code, and
all references to CSNs encapsulated into a component (i.e. an overlay)
that is optional instead of hardcoded as it is now. This isolation would
help reduce the chance of breakage that is rampant right now whenever
some other sturcture definition changes...
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
Symas: Premier OpenSource Development and Support