]> source.dussan.org Git - archiva.git/commitdiff
[MRM-136] fix caching so that it changes when the index does
authorBrett Porter <brett@apache.org>
Tue, 5 Sep 2006 01:13:31 +0000 (01:13 +0000)
committerBrett Porter <brett@apache.org>
Tue, 5 Sep 2006 01:13:31 +0000 (01:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@440211 13f79535-47bb-0310-9956-ffa450edef68

archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/RepositoryArtifactIndex.java
archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/lucene/LuceneRepositoryArtifactIndex.java

index 05a3ab0a7e8b4860b5e17218e1522c37012698a0..e35338de715d71d3dafacb94b1e8778e985f3e49 100644 (file)
@@ -129,8 +129,7 @@ public interface RepositoryArtifactIndex
         throws RepositoryIndexSearchException;
 
     /**
-     * Get the time when the index was last updated. Note that this does not monitor external processes or multiple
-     * instances of the index.
+     * Get the time when the index was last updated. Note that this does not monitor external processes.
      *
      * @return the last updated time, or 0 if it has not been updated since the class was instantiated.
      */
index e456ac5fa88e6fc949da313c7ae084d5ee802d05..ee5062542f6dedb2b4f8178c084f10455a3cca40 100644 (file)
@@ -80,7 +80,7 @@ public class LuceneRepositoryArtifactIndex
 
     private MavenProjectBuilder projectBuilder;
 
-    private long lastUpdatedTime = 0;
+    private static long lastUpdatedTime = 0;
 
     public LuceneRepositoryArtifactIndex( File indexPath, LuceneIndexRecordConverter converter )
     {