Skip to content

Commit

Permalink
Fix naming for Tarantool threads
Browse files Browse the repository at this point in the history
Each created thread should have unique name instead constant value
  • Loading branch information
valery1707 authored and dkasimovskiy committed Nov 17, 2023
1 parent 78c8d1a commit 1425d13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private static final class WorkerFactory implements ForkJoinWorkerThreadFactory
@Override
public ForkJoinWorkerThread newThread(ForkJoinPool pool) {
ForkJoinWorkerThread worker = ForkJoinPool.defaultForkJoinWorkerThreadFactory.newThread(pool);
worker.setName("TarantoolTemplateQueryExecutor-" + id);
worker.setName("TarantoolTemplateQueryExecutor-" + id.incrementAndGet());
return worker;
}
}
Expand Down

0 comments on commit 1425d13

Please sign in to comment.