From 7c4bc2480c0cb0b4bb816ec090e9673bdddce047 Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Wed, 29 Jul 2015 14:23:35 -0400 Subject: Add code to reindex data during cloning without replication When setting up a clone, indexes are added before the replication agreements are set up and the consumer is initialized. Thus, as data is replicated and added to the clone db, the data is indexed. When cloning is done with the replication agreements already set up and the data replicated, the existing data is not indexed and cannot be accessed in searches. The data needs to be reindexed. Related to ticket 1414 --- .../netscape/certsrv/system/ConfigurationRequest.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'base/common') diff --git a/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java b/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java index 0682ac98f..7c6c339f5 100644 --- a/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java +++ b/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java @@ -129,6 +129,9 @@ public class ConfigurationRequest { @XmlElement protected String setupReplication; + @XmlElement + protected String reindexData; + @XmlElement protected List systemCerts; @@ -525,6 +528,18 @@ public class ConfigurationRequest { this.setupReplication = setupReplication; } + public boolean getReindexData() { + // default to false + if (reindexData == null) { + return false; + } + return reindexData.equalsIgnoreCase("true"); + } + + public void setReindexData(String reindexData) { + this.reindexData = reindexData; + } + /** * @return the database */ @@ -946,7 +961,8 @@ public class ConfigurationRequest { ", sharedDBUserDN=" + sharedDBUserDN + ", createNewDB=" + createNewDB + ", setupReplication=" + setupReplication + - ", subordinateSecurityDomainName" + subordinateSecurityDomainName + + ", subordinateSecurityDomainName=" + subordinateSecurityDomainName + + ", reindexData=" + reindexData + "]"; } @@ -960,5 +976,4 @@ public class ConfigurationRequest { return uri == null ? null : new URI(uri); } } - } -- cgit