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

jvergara
07.26.2007 023d9f307c8c730cf5c3554a1ad1daf9e81ae591
Generate the schema initialization progress message AFTER determining which of the connections correspond to the source and which to the destination of the initialization.
1 files modified
9 ■■■■■ changed files
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java 9 ●●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java
@@ -4148,11 +4148,6 @@
    // If we must initialize the schema do so.
    if (mustInitializeSchema(server1, server2))
    {
      printProgressMessage(formatter.getFormattedWithPoints(
          INFO_ENABLE_REPLICATION_INITIALIZING_SCHEMA.get(
              ConnectionUtils.getHostPort(ctxDestination),
              ConnectionUtils.getHostPort(ctxSource))));
      if (argParser.useSecondServerAsSchemaSource())
      {
        ctxSource = ctx2;
@@ -4163,6 +4158,10 @@
        ctxSource = ctx1;
        ctxDestination = ctx2;
      }
      printProgressMessage(formatter.getFormattedWithPoints(
          INFO_ENABLE_REPLICATION_INITIALIZING_SCHEMA.get(
              ConnectionUtils.getHostPort(ctxDestination),
              ConnectionUtils.getHostPort(ctxSource))));
      initializeSuffix(Constants.SCHEMA_DN, ctxSource,
          ctxDestination, false);
      printProgressMessage(formatter.getFormattedDone());