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

ludovicp
15.59.2010 b3fd8de34d9a827d582a8e33efdf18a958a6434d
Fix possible deadlock with delete operations
1 files modified
8 ■■■■ changed files
opends/src/server/org/opends/server/replication/service/ReplicationDomain.java 8 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/ReplicationDomain.java
@@ -3668,7 +3668,9 @@
   * @param serverId    server where these attributes are configured.
   * @param attributes  the configured attributes.
   */
  synchronized public void setEclInclude(int serverId, Set<String> attributes)
  public void setEclInclude(int serverId, Set<String> attributes)
  {
    synchronized(eclIncludeByServer)
  {
    eclIncludeByServer.put(serverId, attributes);
@@ -3678,6 +3680,7 @@
      for (String attribute : attributesByServer)
        crossServersECLIncludes.add(attribute);
  }
  }
  /**
   * Get the attributes to include in each change for the ECL.
@@ -3698,8 +3701,11 @@
   */
  public Set<String> getEclInclude(int serverId)
  {
    synchronized(eclIncludeByServer)
    {
    return eclIncludeByServer.get(serverId);
  }
  }
  /**
   * Returns the ChangeNUmber of the last Change that was fully processed