mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fix for ALF-786: WCM Cluster / Lucene: Searching in staging returns duplicate entries (when concurrently submtting)
- fixed duplication arising from indexing 0-1 and 0-2 against the index for near simultaneous snapshots - tracking has not been modified nor has index rebuild - the latest index info from the AVM index is definitive and complete - we do not have to do additional work as we do for DM git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19898 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -784,6 +784,43 @@
|
||||
order by version_id
|
||||
</select>
|
||||
|
||||
<!-- by version ids -->
|
||||
|
||||
<select id="select_AVMVersionRootsByVersionTo" parameterMap="parameter_IdToMap" resultMap="result_AVMVersionRoot">
|
||||
<![CDATA[
|
||||
select
|
||||
*
|
||||
from
|
||||
avm_version_roots
|
||||
where
|
||||
avm_store_id = ? and
|
||||
version_id <= ?
|
||||
order by version_id
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<select id="select_AVMVersionRootsByVersionFrom" parameterMap="parameter_IdFromMap" resultMap="result_AVMVersionRoot">
|
||||
select
|
||||
*
|
||||
from
|
||||
avm_version_roots
|
||||
where
|
||||
avm_store_id = ? and
|
||||
version_id >= ?
|
||||
order by version_id
|
||||
</select>
|
||||
|
||||
<select id="select_AVMVersionRootsByVersionsBetween" parameterMap="parameter_IdFromToMap" resultMap="result_AVMVersionRoot">
|
||||
select
|
||||
*
|
||||
from
|
||||
avm_version_roots
|
||||
where
|
||||
avm_store_id = ? and
|
||||
version_id between ? and ?
|
||||
order by version_id
|
||||
</select>
|
||||
|
||||
<!-- Optimistic update of the version root -->
|
||||
<update id="update_AVMVersionRoot" parameterClass="AVMVersionRoot">
|
||||
update
|
||||
|
Reference in New Issue
Block a user