transaction_persistent could disable routing after commit #889

If transaction_persistent is enabled and some query would disable multiplexing,
for example "SELECT @@hostname", query routing was still disabled even after
the transaction has committed
v1.4.0-955
René Cannaò 9 years ago
parent da9bbfdd49
commit ad4c65cf16

@ -2333,6 +2333,10 @@ handler_again:
if (myds->myconn->IsActiveTransaction()==true) { // only active transaction is important here. Ignore other criterias
transaction_persistent_hostgroup=current_hostgroup;
}
} else {
if (myds->myconn->IsActiveTransaction()==false) { // a transaction just completed
transaction_persistent_hostgroup=-1;
}
}
}
}

Loading…
Cancel
Save