This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang 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 5fb7eabbb72 Refactor ConnectionContext (#31726)
5fb7eabbb72 is described below
commit 5fb7eabbb722d0599c379f905b0f47865420a178
Author: Liang Zhang <[email protected]>
AuthorDate: Mon Jun 17 12:13:38 2024 +0800
Refactor ConnectionContext (#31726)
---
.../shardingsphere/infra/session/connection/ConnectionContext.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/infra/session/src/main/java/org/apache/shardingsphere/infra/session/connection/ConnectionContext.java
b/infra/session/src/main/java/org/apache/shardingsphere/infra/session/connection/ConnectionContext.java
index c2539c8fe33..36ee8b9c645 100644
---
a/infra/session/src/main/java/org/apache/shardingsphere/infra/session/connection/ConnectionContext.java
+++
b/infra/session/src/main/java/org/apache/shardingsphere/infra/session/connection/ConnectionContext.java
@@ -36,6 +36,7 @@ import java.util.Optional;
*/
@RequiredArgsConstructor
@Getter
+@Setter
public final class ConnectionContext implements AutoCloseable {
private final CursorConnectionContext cursorContext = new
CursorConnectionContext();
@@ -47,9 +48,9 @@ public final class ConnectionContext implements AutoCloseable
{
private final Grantee grantee;
+ @Setter(AccessLevel.NONE)
private String databaseName;
- @Setter
private String trafficInstanceId;
public ConnectionContext() {