diff options
author | James Moger <james.moger@gitblit.com> | 2012-03-19 22:25:22 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-03-19 22:25:22 -0400 |
commit | 273cb9014658ee5f931a191e3a2f6065d7c2657f (patch) | |
tree | f41bf50fb77d504498631e1b6d0e333938e64ee7 /src/com/gitblit/LuceneExecutor.java | |
parent | 22a8a61991c4364632dd4faafa21edc33b06c257 (diff) | |
download | gitblit-273cb9014658ee5f931a191e3a2f6065d7c2657f.tar.gz gitblit-273cb9014658ee5f931a191e3a2f6065d7c2657f.zip |
Eliminated Lucene settings
Diffstat (limited to 'src/com/gitblit/LuceneExecutor.java')
-rw-r--r-- | src/com/gitblit/LuceneExecutor.java | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/com/gitblit/LuceneExecutor.java b/src/com/gitblit/LuceneExecutor.java index e859947d..db604a0a 100644 --- a/src/com/gitblit/LuceneExecutor.java +++ b/src/com/gitblit/LuceneExecutor.java @@ -148,26 +148,12 @@ public class LuceneExecutor implements Runnable { }
/**
- * Indicates if the Lucene executor can index repositories.
- *
- * @return true if the Lucene executor is ready to index repositories
- */
- public boolean isReady() {
- return storedSettings.getBoolean(Keys.lucene.enable, false);
- }
-
- /**
- * Run is executed by the gitblit executor service at whatever frequency
- * is specified in the settings. Because this is called by an executor
- * service, calls will queue - i.e. there can never be concurrent execution
- * of repository index updates.
+ * Run is executed by the Gitblit executor service. Because this is called
+ * by an executor service, calls will queue - i.e. there can never be
+ * concurrent execution of repository index updates.
*/
@Override
public void run() {
- if (!isReady()) {
- return;
- }
-
for (String repositoryName: GitBlit.self().getRepositoryList()) {
RepositoryModel model = GitBlit.self().getRepositoryModel(repositoryName);
if (model.hasCommits && !ArrayUtils.isEmpty(model.indexedBranches)) {
|