File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/index Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -264,12 +264,20 @@ private void createLazyFixedExecutor() {
264
264
265
265
private void createLazyHistoryExecutor () {
266
266
lzHistoryExecutor = LazilyInstantiate .using (() ->
267
- Executors .newFixedThreadPool (env .getHistoryParallelism ()));
267
+ Executors .newFixedThreadPool (env .getHistoryParallelism (), runnable -> {
268
+ Thread thread = Executors .defaultThreadFactory ().newThread (runnable );
269
+ thread .setName ("history-" + thread .getId ());
270
+ return thread ;
271
+ }));
268
272
}
269
273
270
274
private void createLazyHistoryFileExecutor () {
271
275
lzHistoryFileExecutor = LazilyInstantiate .using (() ->
272
- Executors .newFixedThreadPool (env .getHistoryFileParallelism ()));
276
+ Executors .newFixedThreadPool (env .getHistoryFileParallelism (), runnable -> {
277
+ Thread thread = Executors .defaultThreadFactory ().newThread (runnable );
278
+ thread .setName ("history-file-" + thread .getId ());
279
+ return thread ;
280
+ }));
273
281
}
274
282
275
283
private class CtagsObjectFactory implements ObjectFactory <Ctags > {
You can’t perform that action at this time.
0 commit comments