This is an automated email from the ASF dual-hosted git repository.
wuweijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 0ff1c4f Remove audit package, will add this feature when in plan
(#9927)
0ff1c4f is described below
commit 0ff1c4fb5523ff97a2214e25e2ce83a4e2b594bf
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Apr 3 21:05:54 2021 +0800
Remove audit package, will add this feature when in plan (#9927)
---
.../infra/check/audit/AuditSQLChecker.java | 40 ----------------------
.../context/metadata/MetaDataContextsBuilder.java | 3 +-
2 files changed, 1 insertion(+), 42 deletions(-)
diff --git
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/check/audit/AuditSQLChecker.java
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/check/audit/AuditSQLChecker.java
deleted file mode 100644
index bb7a561..0000000
---
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/check/audit/AuditSQLChecker.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.infra.check.audit;
-
-import org.apache.shardingsphere.infra.check.SQLChecker;
-
-/**
- * Authentication SQL checker.
- */
-public abstract class AuditSQLChecker implements SQLChecker {
-
- private static final int ORDER = 1;
-
- private static final String CHECK_TYPE = "AUDIT";
-
- @Override
- public final int getOrder() {
- return ORDER;
- }
-
- @Override
- public final String getSQLCheckType() {
- return CHECK_TYPE;
- }
-}
diff --git
a/shardingsphere-infra/shardingsphere-infra-context/src/main/java/org/apache/shardingsphere/infra/context/metadata/MetaDataContextsBuilder.java
b/shardingsphere-infra/shardingsphere-infra-context/src/main/java/org/apache/shardingsphere/infra/context/metadata/MetaDataContextsBuilder.java
index 3c9e149..caa470b 100644
---
a/shardingsphere-infra/shardingsphere-infra-context/src/main/java/org/apache/shardingsphere/infra/context/metadata/MetaDataContextsBuilder.java
+++
b/shardingsphere-infra/shardingsphere-infra-context/src/main/java/org/apache/shardingsphere/infra/context/metadata/MetaDataContextsBuilder.java
@@ -101,8 +101,7 @@ public final class MetaDataContextsBuilder {
for (String each : ruleConfigs.keySet()) {
mataDataMap.put(each, buildMetaData(each));
}
- Authentication authentication = buildAuthentication(users,
mataDataMap);
- AuthenticationContext.getInstance().init(authentication);
+ AuthenticationContext.getInstance().init(buildAuthentication(users,
mataDataMap));
return new StandardMetaDataContexts(mataDataMap, executorEngine, new
ShardingSphereUsers(users), props);
}