summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-12-19 15:19:53 +0000
committerOlivier Lamy <olamy@apache.org>2012-12-19 15:19:53 +0000
commit58afcb111487f09821d20ce25015352ee5140b65 (patch)
treef0cfeabeff964ca1b7cc6cdac092288c749e57c4 /archiva-modules/archiva-scheduler/archiva-scheduler-repository/src
parent31438032029fe54269ae1b349d40f49d8c73c5d3 (diff)
downloadarchiva-58afcb111487f09821d20ce25015352ee5140b65.tar.gz
archiva-58afcb111487f09821d20ce25015352ee5140b65.zip
[MRM-1729] add MetadataRepository#hasMetadataFacet to prevent slow startup time.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1423878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-scheduler/archiva-scheduler-repository/src')
-rw-r--r--archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/DefaultRepositoryArchivaTaskScheduler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/DefaultRepositoryArchivaTaskScheduler.java b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/DefaultRepositoryArchivaTaskScheduler.java
index 1fc88a9be..659ae5e39 100644
--- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/DefaultRepositoryArchivaTaskScheduler.java
+++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/DefaultRepositoryArchivaTaskScheduler.java
@@ -309,6 +309,7 @@ public class DefaultRepositoryArchivaTaskScheduler
MetadataRepository metadataRepository )
throws MetadataRepositoryException
{
+
return repositoryStatisticsManager.getLastStatistics( metadataRepository, repoConfig.getId() ) != null;
}