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

floblanc
17.13.2009 67d407d20f1fec619b00433aeaa419976d9da05e
Fix Issue 3796 A network group is still present in "cn=monitor" after deleting it.
2 files modified
10 ■■■■■ changed files
opends/src/server/org/opends/server/core/networkgroups/NetworkGroup.java 2 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/networkgroups/NetworkGroupStatistics.java 8 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/networkgroups/NetworkGroup.java
@@ -1105,6 +1105,8 @@
    resourceLimitsPolicy = null;
    criteria = ConnectionCriteria.TRUE;
    policies.clear();
    // Remove the stats
    statistics.finalizeStatistics();
  }
opends/src/server/org/opends/server/core/networkgroups/NetworkGroupStatistics.java
@@ -79,6 +79,14 @@
  /**
   * Finalize the statistics.
   */
  public void finalizeStatistics() {
    DirectoryServer.deregisterMonitorProvider(getMonitorInstanceName());
  }
  /**
   * Increments the number of operations managed by this network group.
   * @param message The LDAP Message containing the operation to be
   * managed by the network group.