Skip to content
Browse files

[misc] changing master detection for old server that didn't have @@in…

…nodb_read_only system variables

(cherry picked from commit af64064)
  • Loading branch information...
rusher committed Jan 17, 2019
1 parent d2201ba commit 8b235585b326e464a34ab1b0ad2a916a797b5203
@@ -526,7 +526,7 @@ public void throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster,
cause = queryException.getCause();

if (sqlState.startsWith("08")) {
if (sqlState != null && sqlState.startsWith("08")) {
if (reconnected) {
//change sqlState to "Transaction has been rolled back", to transaction exception, since reconnection has succeed
sqlState = "25S03";

0 comments on commit 8b23558

Please sign in to comment.
You can’t perform that action at this time.