mirror of
https://github.com/actiontech/dble.git
synced 2026-05-04 13:30:16 -05:00
Merge pull request #3771 from actiontech/inner-2298
[inner-2298] fix npe
This commit is contained in:
@@ -274,12 +274,12 @@ public class ServerConfig {
|
||||
//check shardingNode and dbGroup change
|
||||
List<String> strShardingNodes = newSchemaConfig.getDefaultShardingNodes();
|
||||
String strApNode = newSchemaConfig.getDefaultApNode();
|
||||
if (isShardingNodeChanged(strShardingNodes, newShardingNodes) || isApNodeChanged(strApNode, newApNodes)) {
|
||||
if (isShardingNodeChanged(strShardingNodes, newShardingNodes) || (!StringUtil.isBlank(strApNode) && isApNodeChanged(strApNode, newApNodes))) {
|
||||
delSchema.add(oldSchema);
|
||||
reloadSchema.add(oldSchema);
|
||||
continue;
|
||||
} else if ((loadAllMode & ManagerParseConfig.OPTS_MODE) == 0 &&
|
||||
(isDbGroupChanged(strShardingNodes, newShardingNodes) || isDbGroupChangedByApNode(strApNode, newApNodes))) { // reload @@config_all not contains -s
|
||||
(isDbGroupChanged(strShardingNodes, newShardingNodes) || (!StringUtil.isBlank(strApNode) && isDbGroupChangedByApNode(strApNode, newApNodes)))) { // reload @@config_all not contains -s
|
||||
delSchema.add(oldSchema);
|
||||
reloadSchema.add(oldSchema);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user