Skip to content

Commit 2f6e9c5

Browse files
authored
fix: update closedExplicitly flag (#1560)
1 parent 3f205f3 commit 2f6e9c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wrapper/src/main/java/software/amazon/jdbc/plugin/failover2/FailoverConnectionPlugin.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ public <T, E extends Exception> T execute(
206206
}
207207

208208
if (canDirectExecute(methodName)) {
209+
if (JdbcMethod.CONNECTION_CLOSE.methodName.equals(methodName)
210+
|| JdbcMethod.CONNECTION_ABORT.methodName.equals(methodName)) {
211+
this.closedExplicitly = true;
212+
}
209213
return jdbcMethodFunc.call();
210214
}
211215

0 commit comments

Comments
 (0)