fix MongoDS bug

This commit is contained in:
Looly 2021-05-08 19:46:37 +08:00
parent 660c8c58d0
commit d79585799b
2 changed files with 25 additions and 24 deletions

View File

@ -19,6 +19,7 @@
* 【extra 】 修复Sftp.mkDirs报错问题issue#1536@Github * 【extra 】 修复Sftp.mkDirs报错问题issue#1536@Github
* 【core 】 修复Bcrypt不支持$2y$盐前缀问题pr#1560@Github * 【core 】 修复Bcrypt不支持$2y$盐前缀问题pr#1560@Github
* 【system 】 修复isWindows8拼写问题pr#1557@Github * 【system 】 修复isWindows8拼写问题pr#1557@Github
* 【db 】 修复MongoDS默认分组参数失效问题issue#1548@Github
------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------

View File

@ -251,7 +251,7 @@ public class MongoDS implements Closeable {
/** /**
* 创建ServerAddress对象会读取配置文件中的相关信息 * 创建ServerAddress对象会读取配置文件中的相关信息
* *
* @param group 分组如果为null默认为无分组 * @param group 分组如果为{@code null}或者""默认为无分组
* @return ServerAddress * @return ServerAddress
*/ */
private ServerAddress createServerAddress(String group) { private ServerAddress createServerAddress(String group) {
@ -337,7 +337,7 @@ public class MongoDS implements Closeable {
return builder; return builder;
} }
if (group == null) { if (StrUtil.isEmpty(group)) {
group = StrUtil.EMPTY; group = StrUtil.EMPTY;
} else { } else {
group = group + StrUtil.DOT; group = group + StrUtil.DOT;