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

jvergara
14.27.2009 6fa03dbaa5d869bd8db47140545127184dd80a48
refs
author jvergara <jvergara@localhost>
Tuesday, July 14, 2009 02:27 +0200
committer jvergara <jvergara@localhost>
Tuesday, July 14, 2009 02:27 +0200
commit6fa03dbaa5d869bd8db47140545127184dd80a48
tree d7208c604b25576adf7e36898422f0abca07d222 tree | zip | gz
parent e3ce4910af53462b22a5f98f6719935964ae43ee 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
opends/src/ads/org/opends/admin/ads/ServerDescriptor.java 68 ●●●●● diff | view | raw | blame | history
opends/src/ads/org/opends/admin/ads/TopologyCache.java 162 ●●●●● diff | view | raw | blame | history