From 023d9f307c8c730cf5c3554a1ad1daf9e81ae591 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 07 Nov 2007 10:26:29 +0000
Subject: [PATCH] Generate the schema initialization progress message AFTER determining which of the connections correspond to the source and which to the destination of the initialization.

---
 opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java b/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java
index f1cce3b..b320a45 100644
--- a/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java
+++ b/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());

--
Gitblit v1.10.0