@@ -59,7 +59,7 @@ public class IndexerParallelizer implements AutoCloseable {
59
59
private LazilyInstantiate <ObjectPool <Ctags >> lzCtagsPool ;
60
60
private LazilyInstantiate <ExecutorService > lzFixedExecutor ;
61
61
private LazilyInstantiate <ExecutorService > lzHistoryExecutor ;
62
- private LazilyInstantiate <ExecutorService > lzHistoryRenamedExecutor ;
62
+ private LazilyInstantiate <ExecutorService > lzHistoryFileExecutor ;
63
63
private LazilyInstantiate <ExecutorService > lzCtagsWatcherExecutor ;
64
64
65
65
/**
@@ -108,17 +108,17 @@ public ObjectPool<Ctags> getCtagsPool() {
108
108
}
109
109
110
110
/**
111
- * @return the ExecutorService used for history parallelism
111
+ * @return the ExecutorService used for history parallelism (repository level)
112
112
*/
113
113
public ExecutorService getHistoryExecutor () {
114
114
return lzHistoryExecutor .get ();
115
115
}
116
116
117
117
/**
118
- * @return the ExecutorService used for history-renamed parallelism
118
+ * @return the ExecutorService used for history parallelism (file level)
119
119
*/
120
- public ExecutorService getHistoryRenamedExecutor () {
121
- return lzHistoryRenamedExecutor .get ();
120
+ public ExecutorService getHistoryFileExecutor () {
121
+ return lzHistoryFileExecutor .get ();
122
122
}
123
123
124
124
/**
@@ -195,8 +195,8 @@ private void bounceHistoryExecutor() {
195
195
}
196
196
197
197
private void bounceHistoryRenamedExecutor () {
198
- if (lzHistoryRenamedExecutor .isActive ()) {
199
- ExecutorService formerHistoryRenamedExecutor = lzHistoryRenamedExecutor .get ();
198
+ if (lzHistoryFileExecutor .isActive ()) {
199
+ ExecutorService formerHistoryRenamedExecutor = lzHistoryFileExecutor .get ();
200
200
createLazyHistoryRenamedExecutor ();
201
201
formerHistoryRenamedExecutor .shutdown ();
202
202
}
@@ -241,7 +241,7 @@ private void createLazyHistoryExecutor() {
241
241
}
242
242
243
243
private void createLazyHistoryRenamedExecutor () {
244
- lzHistoryRenamedExecutor = LazilyInstantiate .using (() ->
244
+ lzHistoryFileExecutor = LazilyInstantiate .using (() ->
245
245
Executors .newFixedThreadPool (env .getHistoryRenamedParallelism ()));
246
246
}
247
247
0 commit comments