summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/common/src/com/netscape/cms/servlet/csadmin/DatabasePanel.java7
-rw-r--r--base/common/src/com/netscape/cms/servlet/csadmin/SystemConfigService.java8
2 files changed, 7 insertions, 8 deletions
diff --git a/base/common/src/com/netscape/cms/servlet/csadmin/DatabasePanel.java b/base/common/src/com/netscape/cms/servlet/csadmin/DatabasePanel.java
index 89f01e01c..1c0e32e82 100644
--- a/base/common/src/com/netscape/cms/servlet/csadmin/DatabasePanel.java
+++ b/base/common/src/com/netscape/cms/servlet/csadmin/DatabasePanel.java
@@ -483,15 +483,14 @@ public class DatabasePanel extends WizardPanelBase {
cs.putString("preop.internaldb.replicationpwd", replicationpwd);
cs.putString("preop.database.removeData", "false");
- ConfigurationUtils.reInitSubsystem(csType);
- ConfigurationUtils.populateIndexes();
-
if (select.equals("clone")) {
CMS.debug("Start setting up replication.");
ConfigurationUtils.setupReplication();
- ConfigurationUtils.reInitSubsystem(csType);
}
+ ConfigurationUtils.reInitSubsystem(csType);
+ ConfigurationUtils.populateIndexes();
+
cs.putBoolean("preop.Database.done", true);
cs.commit(false);
} catch (Exception e) {
diff --git a/base/common/src/com/netscape/cms/servlet/csadmin/SystemConfigService.java b/base/common/src/com/netscape/cms/servlet/csadmin/SystemConfigService.java
index 8bc3c5946..e61d113de 100644
--- a/base/common/src/com/netscape/cms/servlet/csadmin/SystemConfigService.java
+++ b/base/common/src/com/netscape/cms/servlet/csadmin/SystemConfigService.java
@@ -380,14 +380,14 @@ public class SystemConfigService extends PKIService implements SystemConfigResou
cs.putString("preop.database.removeData", "false");
cs.commit(false);
- ConfigurationUtils.reInitSubsystem(csType);
- ConfigurationUtils.populateIndexes();
-
if (data.getIsClone().equals("true")) {
CMS.debug("Start setting up replication.");
ConfigurationUtils.setupReplication();
- ConfigurationUtils.reInitSubsystem(csType);
}
+
+ ConfigurationUtils.reInitSubsystem(csType);
+ ConfigurationUtils.populateIndexes();
+
} catch (Exception e) {
throw new PKIException("Error in populating database" + e);
}