Skip to content

Commit

Permalink
Set 'with_gtid' flag each time a GITD is going to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierJF committed Jun 8, 2020
1 parent 7b19598 commit a427eca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/MySQL_Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5781,11 +5781,13 @@ void MySQL_Session::handler___client_DSS_QUERY_SENT___server_DSS_NOT_INITIALIZED
if (session_fast_forward == false) {
if (qpo->min_gtid) {
gtid_uuid = qpo->min_gtid;
with_gtid = true;
} else if (qpo->gtid_from_hostgroup >= 0) {
_gtid_from_backend = find_backend(qpo->gtid_from_hostgroup);
if (_gtid_from_backend) {
if (_gtid_from_backend->gtid_uuid[0]) {
gtid_uuid = _gtid_from_backend->gtid_uuid;
with_gtid = true;
}
}
}
Expand Down

0 comments on commit a427eca

Please sign in to comment.