James Moger
2012-03-05 6fa6abf07be67bba86e9781a4028c4b3863b50f7
src/com/gitblit/GitBlit.java
@@ -1697,6 +1697,15 @@
   }
   /**
    * Update the Lucene index of a repository.
    *
    * @param repository
    */
   public void updateLuceneIndex(RepositoryModel repository) {
      luceneExecutor.queue(repository);
   }
   /**
    * Returns the descriptions/comments of the Gitblit config settings.
    * 
    * @return SettingsModel
@@ -1815,8 +1824,8 @@
      }
      luceneExecutor = new LuceneExecutor(settings);
      if (luceneExecutor.isReady()) {
         logger.info("Lucene executor is scheduled to process the repository queue every 10 minutes.");
         scheduledExecutor.scheduleAtFixedRate(luceneExecutor, 1, 10, TimeUnit.MINUTES);
         logger.info("Lucene executor is scheduled to process the repository queue every 2 minutes.");
         scheduledExecutor.scheduleAtFixedRate(luceneExecutor, 1, 2, TimeUnit.MINUTES);
      } else {
         logger.warn("Lucene executor is disabled.");
      }
@@ -1892,5 +1901,6 @@
   public void contextDestroyed(ServletContextEvent contextEvent) {
      logger.info("Gitblit context destroyed by servlet container.");
      scheduledExecutor.shutdownNow();
      luceneExecutor.close();
   }
}