mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.1 to HEAD
6950: Fix for forum issue (6111) when using xsl:include 6951: Partial fix for WCM-862 6952: Merged V1.4 to V2.1 6921: Reindex tracking refactoring. 6954: Merged V1.4 to V2.1 6927: Config and startup changes for index tracking git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7369 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -412,6 +412,23 @@ public abstract class AbstractReindexComponent implements IndexRecovery
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns <tt>false</tt> if any one of the transactions aren't in the index.
|
||||
*/
|
||||
protected boolean areTxnsInIndex(List<Transaction> txns)
|
||||
{
|
||||
for (Transaction txn : txns)
|
||||
{
|
||||
long txnId = txn.getId().longValue();
|
||||
if (isTxnIdPresentInIndex(txnId) == InIndex.NO)
|
||||
{
|
||||
// Missing txn
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a full reindexing of the given transaction in the context of a completely
|
||||
* new transaction.
|
||||
|
Reference in New Issue
Block a user