提交 3f1a384d 编写于 作者: S Serge Rider

Set thread name for all jobs


Former-commit-id: c9810edc
上级 96c5d03f
......@@ -107,7 +107,6 @@ class ResultSetDataPumpJob extends DataSourceJob implements DBCExecutionSource {
@Override
protected IStatus run(DBRProgressMonitor monitor) {
RuntimeUtils.setThreadName("ResultSetDataPump [" + dataContainer + "]");
error = null;
pumpStartTime = System.currentTimeMillis();
DBRProgressMonitor proxyMonitor = new ProxyProgressMonitor(monitor) {
......
......@@ -96,6 +96,8 @@ public abstract class AbstractJob extends Job
CURRENT_JOB.set(this);
try {
finished = false;
RuntimeUtils.setThreadName(getName());
return this.run(progressMonitor);
} finally {
CURRENT_JOB.remove();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册