mirror of
https://github.com/actiontech/dble.git
synced 2026-01-02 02:40:28 -06:00
inner 721 no sharding/split user (#2332)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user