From 48b1538702ca763f0beb6fca0d11f62a8fc444d2 Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Mon, 13 May 2013 16:23:22 +0000 Subject: [MRM-1751] add merged index ttl to repo group configuration + unit tests git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1481952 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'archiva-modules/archiva-web/archiva-webdav/src/main') diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java index 954e8039c..67f0c1786 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java @@ -1202,8 +1202,7 @@ public class ArchivaDavResourceFactory if ( tmp != null && tmp.getDirectory() != null && tmp.getDirectory().exists() ) { - if ( System.currentTimeMillis() - tmp.getCreationTime() > ( indexMerger.getGroupMergedIndexTtl() * 60 - * 1000 ) ) + if ( System.currentTimeMillis() - tmp.getCreationTime() > ( repositoryGroupConfiguration.getMergedIndexTtl() * 60 * 1000 ) ) { log.debug( MarkerFactory.getMarker( "group.merged.index" ), "tmp group index '{}' is too old so delete it", repositoryGroupConfiguration.getId() ); -- cgit v1.2.3