mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
14.27.2009 528a453c5d271bdf9ef7a7174219950492e5edb6
refs
author jvergara <jvergara@localhost>
Tuesday, July 14, 2009 02:27 +0200
committer jvergara <jvergara@localhost>
Tuesday, July 14, 2009 02:27 +0200
commit528a453c5d271bdf9ef7a7174219950492e5edb6
tree ed617bf16c3b87c6f19e7d890ee75af0e4ab9d0a tree | zip | gz
parent a995631571af16685b978ceebbe4b84f896d3aac view | diff
Follow up to fix for issue 4092 (dsreplication should allow to configure servers with no replication server and servers with only a replication server)

With the fix of 4092, the replication monitoring information for a given replication domain may not be anymore under cn=monitor of the server where the domain is configured. The replication monitoring information is only under cn=monitor of the replication servers.

The following changes wait till all the configuration has been loaded and after that tries to find the replication monitoring information by only searching on the replication servers. If the server does not calculate the whole cn=monitoring tree when a request is made to cn=monitor, the new code should be more efficient than the previous one (since only searching in one replication server should be enough). If it is not the case and the whole cn=monitor is recalculated when a search is made on it, then the new code only adds a new search in most of the cases (the worst case is the one when there are disjoint replication topologies under the same ADS with different replication servers, which is pretty rare).
2 files modified
230 ■■■■ changed files
opendj-sdk/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java 68 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/ads/org/opends/admin/ads/TopologyCache.java 162 ●●●●● diff | view | raw | blame | history