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 --- base/tps/shared/conf/CS.cfg.in | 2 ++ base/tps/shared/conf/indextasks.ldif | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 base/tps/shared/conf/indextasks.ldif (limited to 'base/tps/shared') diff --git a/base/tps/shared/conf/CS.cfg.in b/base/tps/shared/conf/CS.cfg.in index 732d14319..7bbeceef6 100644 --- a/base/tps/shared/conf/CS.cfg.in +++ b/base/tps/shared/conf/CS.cfg.in @@ -1629,6 +1629,8 @@ preop.internaldb.manager_ldif=/usr/share/pki/server/conf/manager.ldif preop.internaldb.post_ldif=/usr/share/pki/tps/conf/vlv.ldif,/usr/share/pki/tps/conf/vlvtasks.ldif preop.internaldb.schema.ldif=/usr/share/pki/server/conf/schema.ldif preop.internaldb.wait_dn=cn=index1160528734, cn=index, cn=tasks, cn=config +preop.internaldb.index_task_ldif=/usr/share/pki/tps/conf/indextasks.ldif +preop.internaldb.index_wait_dn=cn=index1160589774,cn=index,cn=tasks,cn=config preop.module.token=Internal Key Storage Token preop.pin=[PKI_RANDOM_NUMBER] preop.product.name=CS diff --git a/base/tps/shared/conf/indextasks.ldif b/base/tps/shared/conf/indextasks.ldif new file mode 100644 index 000000000..b5106bba4 --- /dev/null +++ b/base/tps/shared/conf/indextasks.ldif @@ -0,0 +1,14 @@ +dn: cn=index1160589774, cn=index, cn=tasks, cn=config +objectclass: top +objectclass: extensibleObject +cn: index1160589774 +ttl: 10 +nsinstance: {database} +nsIndexAttribute: tokenUserID:eq,pres,sub +nsIndexAttribute: tokenID:eq,pres,sub +nsIndexAttribute: dateOfCreate:eq,pres,sub +nsIndexAttribute: dateOfModify:eq,pres,sub +nsIndexAttribute: userCertificate:eq +nsIndexAttribute: tokenSerial:eq +nsIndexAttribute: tokenKeyType:eq +nsIndexAttribute: description:eq,pres -- cgit