diff options
author | Ade Lee <alee@redhat.com> | 2015-07-29 14:23:35 -0400 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2015-07-31 18:35:30 -0400 |
commit | 7c4bc2480c0cb0b4bb816ec090e9673bdddce047 (patch) | |
tree | 283e6c64f6f1a250cf559d1e454fe4f3307d0eb9 /base/common | |
parent | e1eb261b467f6e19c7e6604fc7ecb03e8b1f8166 (diff) | |
download | pki-7c4bc2480c0cb0b4bb816ec090e9673bdddce047.tar.gz pki-7c4bc2480c0cb0b4bb816ec090e9673bdddce047.tar.xz pki-7c4bc2480c0cb0b4bb816ec090e9673bdddce047.zip |
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
Diffstat (limited to 'base/common')
-rw-r--r-- | base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java | 19 |
1 files changed, 17 insertions, 2 deletions
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 @@ -130,6 +130,9 @@ public class ConfigurationRequest { protected String setupReplication; @XmlElement + protected String reindexData; + + @XmlElement protected List<SystemCertData> systemCerts; @XmlElement @@ -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); } } - } |