未验证 提交 8faeff23 编写于 作者: M ma-xiao-guang-64 提交者: GitHub

解决ExecutorEngine close的空档期

解决ExecutorEngine close的空档期
上级 5d535b45
......@@ -74,8 +74,9 @@ public class ShardingDataSource extends AbstractDataSourceAdapter implements Aut
int originalExecutorSize = shardingProperties.getValue(ShardingPropertiesConstant.EXECUTOR_SIZE);
int newExecutorSize = newShardingProperties.getValue(ShardingPropertiesConstant.EXECUTOR_SIZE);
if (originalExecutorSize != newExecutorSize) {
executorEngine.close();
ExecutorEngine originalExecutorEngine = executorEngine;
executorEngine = new ExecutorEngine(newExecutorSize);
originalExecutorEngine.close();
}
boolean newShowSQL = newShardingProperties.getValue(ShardingPropertiesConstant.SQL_SHOW);
shardingProperties = newShardingProperties;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册