-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for cluster can acquire multi be in same host and fixed some issues #47
Conversation
@@ -155,7 +155,7 @@ | |||
ERR_CLUSTER_NAME_NULL(5041, new byte[] {'4', '2', '0', '0', '0'}, "No cluster name"), | |||
ERR_CLUSTER_NO_PERMISSIONS(5042, new byte[] {'4', '2', '0', '0', '0'}, "No permissions"), | |||
ERR_CLUSTER_CREATE_ISTANCE_NUM_ERROR(5043, new byte[] {'4', '2', '0', '0', '0'}, | |||
"Instance num can't be less than 0"), | |||
"Instance num can't be less than or equal 0"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't be less than nor equal with 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个确定吗?我怎么查了这么写没错啊
} | ||
builder.addColumn(new Column(title, ColumnType.createVarchar(30))); | ||
} | ||
return builder.build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个为什么不写成静态对象呢?每次生成的不是一样的么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里用其他地方的静态对象生成的,避免重复吧。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个没啥重复的吧?因为你每次build出来的内容都一样,那么写成一个静态的对象直接返回是没问题的
@@ -85,7 +85,7 @@ public static String getDbNameFromFullName(String db) { | |||
* @return | |||
*/ | |||
public static String getUsrNameFromFullName(String usr) { | |||
if (checkName(usr)) { | |||
if (!checkName(usr)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里难道不应该是checkName不符合后,返回的是参数而不是null么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个我改下,应该返回参数更合理些。
} | ||
builder.addColumn(new Column(title, ColumnType.createVarchar(30))); | ||
} | ||
return builder.build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个没啥重复的吧?因为你每次build出来的内容都一样,那么写成一个静态的对象直接返回是没问题的
// Copyright 2017 The Apache Software Foundation | ||
// Modifications copyright (C) 2017, Baidu.com, Inc. | ||
|
||
// Licensed to the Apache Software Foundation (ASF) under one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个Licence写的有问题,需要改下
No description provided.