Merged 5.0.N (5.0.3) to 5.1.N (5.1.1)

113508 adavis: Merged V4.2-BUG-FIX (4.2.6) to 5.0.N (5.0.3)
      113395 tvalkevych: Merged V4.1-BUG-FIX (4.1.11) to V4.2-BUG-FIX (4.2.6)
         113371 amorarasu: Merged DEV to V4.1-BUG-FIX (4.1.11)
            113345: MNT-10305: DeletedNodeCleanupWorker should be improved.
               - Fixed the starting time for the purge old nodes process.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@113586 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tatyana Valkevych
2015-10-02 11:06:36 +00:00
parent 27f95f25b6
commit 38a6b0f1c2
5 changed files with 47 additions and 1 deletions

View File

@@ -4800,6 +4800,13 @@ public abstract class AbstractNodeDAOImpl implements NodeDAO, BatchingDAO
Long time = selectMaxTxnCommitTime();
return (time == null ? LONG_ZERO : time);
}
public Long getMinTxnCommitTimeForDeletedNodes()
{
Long time = selectMinTxnCommitTimeForDeletedNodes();
return (time == null ? LONG_ZERO : time);
}
@Override
public Long getMinTxnId()
@@ -4985,6 +4992,7 @@ public abstract class AbstractNodeDAOImpl implements NodeDAO, BatchingDAO
protected abstract List<Long> selectTxnsUnused(Long minTxnId, Long maxCommitTime, Integer count);
protected abstract Long selectMinTxnCommitTime();
protected abstract Long selectMaxTxnCommitTime();
protected abstract Long selectMinTxnCommitTimeForDeletedNodes();
protected abstract Long selectMinTxnId();
protected abstract Long selectMaxTxnId();
protected abstract Long selectMinUnusedTxnCommitTime();