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

Jean-Noel Rouvignac
15.44.2015 ef171d1e8556bc183ee08e9f79c24e41c99a8976
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/MultimasterReplication.java
@@ -202,7 +202,7 @@
    {
      final LDAPReplicationDomain domain = new LDAPReplicationDomain(
          configuration, updateToReplayQueue, dsrsShutdownSync);
      if (domains.size() == 0)
      if (domains.isEmpty())
      {
        // Create the threads that will process incoming update messages
        createReplayThreads();
@@ -255,7 +255,7 @@
    }
    // No replay threads running if no replication need
    if (domains.size() == 0) {
    if (domains.isEmpty()) {
      stopReplayThreads();
    }
  }
@@ -790,7 +790,7 @@
    // Stop threads then restart new number of threads
    stopReplayThreads();
    replayThreadNumber = numUpdateRepayThread;
    if (domains.size() > 0)
    if (!domains.isEmpty())
    {
      createReplayThreads();
    }