inner 721 no sharding/split user (#2332)

This commit is contained in:
tiger.yan
2020-11-27 15:17:18 +08:00
committed by GitHub
parent 7c1cc3688e
commit 8187f8c377

View File

@@ -250,7 +250,11 @@ public final class DryRun {
}
}
if (!hasShardingUser) {
list.add(new ErrorInfo("Xml", "WARNING", "There is No Sharding User"));
if (serverConfig.getSchemas().size() > 0) {
list.add(new ErrorInfo("Xml", "WARNING", "There is No Sharding User"));
} else {
list.add(new ErrorInfo("Xml", "NOTICE", "There is No Sharding User"));
}
} else if (schema.size() <= serverConfig.getSchemas().size()) {
for (String schemaName : serverConfig.getSchemas().keySet()) {
if (!schema.contains(schemaName)) {
@@ -260,7 +264,11 @@ public final class DryRun {
}
if (!hasRWSplitUser) {
list.add(new ErrorInfo("Xml", "WARNING", "There is No RWSplit User"));
if (serverConfig.getSchemas().size() == 0) {
list.add(new ErrorInfo("Xml", "WARNING", "There is No RWSplit User"));
} else {
list.add(new ErrorInfo("Xml", "NOTICE", "There is No RWSplit User"));
}
}
if (!hasManagerUser) {